Jump to content

Complie error on ubuntu


Recommended Posts

Posted

i was try to install mangos2 on ubuntu,but it report error at complie step.the error message is down here.

 

The development tools and libraries have been installed!
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is unknown
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
CMake Error at CMakeLists.txt:20 (project):
  No CMAKE_CXX_COMPILER could be found.

  Tell CMake where to find the compiler by setting either the environment
  variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.


-- Configuring incomplete, errors occurred!
See also "/home/mangos2/two/src/server/linux/CMakeFiles/CMakeOutput.log".
See also "/home/mangos2/two/src/server/linux/CMakeFiles/CMakeError.log".
make: *** No targets specified and no makefile found.  Stop.
There was an error building MaNGOS!

 

 

what can i do?maybe CXX complier is missing or something else?

Posted
10 hours ago, Talendrys said:

Hello Cloudfox, how did you tried it and on which version of Ubuntu ?

Tal'

ubuntu 16.04 ,

i googled it,turned out it need to install g++ to server,then i try complie success in one time! :))))

Posted
1 hour ago, Talendrys said:

Yeah that was my answer. However the script getmangos.sh does that for you. So it Is surprising that you did not have it. :-)

 

Tal.

thank you : ),here is another question about charactor set of server.

my language is chinese, chinese is supported by mangos2 when i build server on windows10.

but now i can't creat a  name in chinese char in my server,it shows '????' in name spot.

i found charactor set of mysql on ubuntu is latin. so i modify it to utf8 and reboot system.

sadly i still can't create name in chinese chars after reboot, it is still '????' there...

 

so what can i do? is there any other para to modify to fix this ? 

thank you!

  • 3 months later...
Posted

i find this in /server/linux/getmangos.sh , Ubuntu 16.04 

apt-get -y install curl autoconf automake cmake libbz2-dev libace-dev libssl-dev libmysqlclient-dev libtool

After install this ext, i can run compile

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use