PDA

View Full Version : Compiling on CentOS



maxdamage99
29th March 2016, 17:00
I compile libcod, i and i have error:


/usr/bin/ld: skipping incompatible ./vendors/lib/libmysqlclient.so when searching for -lmysqlclient
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib/libmysqlclient.so when searching for -lmysqlclient
/usr/bin/ld: skipping incompatible /lib/../lib/libmysqlclient.so when searching for -lmysqlclient
/usr/bin/ld: skipping incompatible /usr/lib/../lib/libmysqlclient.so when searching for -lmysqlclient
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../libmysqlclient.so when searching for -lmysqlclient
/usr/bin/ld: skipping incompatible /usr/lib64/libmysqlclient.so when searching for -lmysqlclient
/usr/bin/ld: skipping incompatible /lib/libmysqlclient.so when searching for -lmysqlclient
/usr/bin/ld: skipping incompatible /usr/lib/libmysqlclient.so when searching for -lmysqlclient
/usr/bin/ld: cannot find -lmysqlclient

Help)

Ni3ls
29th March 2016, 17:18
http://killtube.org/showthread.php?2036-Help-me-pls)))&p=10702&viewfull=1#post10702

maxdamage99
29th March 2016, 17:46
Ni3ls no! This other problem!

Mitch
29th March 2016, 20:48
Ni3ls no! This other problem!

No, it is the same problem.
The issue is that you are linking a 64-bit library to a 32-bit library.

Edit: Do you have installed mysql-devel.i686? What is the output of 'mysql_config --cflags --libs'?

mysql_config --cflags --libs
Have you tried to using the vendors/lib directory with the link command?

ln -s /usr/lib/mysql/ vendors/lib

IzNoGoD
29th March 2016, 21:08
Just copy-pasted the EXACT contents of that tutorial in a fresh install of centos 6 x64. Works fine.

Hint: try to follow tutorials completely, especially the ones that allow you to just copy paste commands into your ssh session.

maxdamage99
29th March 2016, 22:24
Centos x64
Vendors/lib -> /usr/lib64/mysql
mysql-devel.i686 - last version
I remove some bugs and have last (i hope that the last) error:


/usr/bin/ld: cannot find -lmysqlclient

IzNoGoD
30th March 2016, 00:01
You havent even specified wether you're running centos 6 or 7 yet...

maxdamage99
30th March 2016, 12:57
CentOS-7-x86_64

IzNoGoD
30th March 2016, 13:00
aaaaand
in the link niels posted, in which mitch replied to your OTHER libcod compile questions, there's this:


Edit: for CentOS 7 you need: mariadb-server and mariadb-devel.i686.

IzNoGoD
30th March 2016, 13:35
For everyone's entertainment, a fresh install of centos 7 x64, going through the commands as posted in mitch's tutorial 1 by 1, resulting in a fully compiled libcod.so:

click here (http://eu.jumpersheaven.com/vids/centos 7 x64-2016-03-30T12-26-51-930734100Z.webm)

voron00
30th March 2016, 13:51
I too can confirm a succesfull build (from my repo) on centos 6/7, using the instructions from mitch with symlinking ./vendors/lib and mariadb thing on centos 7 1060