I'm trying to compile directly on my CentOS server but always get this error when I type "make NIGHTLY=1 -f makefile" on terminal
Code:
Current build revision: 251 (GIT hash: 72ff099)
Compiler Flags: g++ -c -Wall -Wno-unknown-pragmas -Wno-invalid-offsetof -Wno-unused-but-set-variable -Wno-switch -pipe -fexceptions -fnon-call-exceptions -s -00 -fno-expensive-optimizations -fno-omit-frame-pointer -ffast-math -fpermissive -I./src/common -I/usr/include/mysql -D_GRAY_SVR -D_CONSOLE -D_REENTRANT -D_LINUX -D_NIGHTLYBUILD -D_MTNETWORK
...
Compiling src/common/sqlite/sqlite3.c
/bin/ld: cannot find -lmysqlclient
collect2: error: ld returned 1 exit status
make: *** [spheresvr] Error 1
PS: these 3 packages are already installed:
-yum install mysql
-yum install mysql-libs
-yum install mysql-devel
EDIT: Compiler is working fine now, but using the compilated spheresvr file I'm having tons of errors on console. There's so many errors that sphere always return "Server unstable - closing" before finish loading proccess.
these problems occur using both spheresvr file compiled on the same PC and spheresvr file generated from automated GIT / Travis-CI server (Ubuntu/Linaro 4.6.3-1ubuntu5)
EDIT²: I finally found the problem, sphere is 32bit and must run in 32bit even on 64bit OS, but both spheresvr files that I had tried was compiled in 64bit, making it very unstable.
I just changed the compiler to build using 32bit and now everything is running fine (at least for now)
So the problem with sphere on linux is not a fault on source code, but just a lack of updated guides/instructions telling what the user must do to make everything work properly