DB compile error

08/18/2014 09:10 TheSLZ#1
Hi epvp,

When i compile mainline/mainline_released db, I get this error:

Code:
root@slz:/usr/src/mainline_released/mainline_sg/Srcs/Server/db/src # gmake -j20
linking ...
/usr/bin/ld: cannot find -lmysqlclient
gmake: *** [../db_r40146] Error 1
root@slz:/usr/src/mainline_released/mainline_sg/Srcs/Server/db/src #
Yeah, i know, the mysqlclient not found.
I tried to reinstall this way:

Code:
cd /usr/ports/databases/mysql56-server/ && make deinstall WITH_XCHARSET=all clean
cd /usr/ports/databases/mysql56-client/ && make deinstall WITH_XCHARSET=all clean
cd /usr/ports/databases/mysql55-server/ && make deinstall WITH_XCHARSET=all clean
cd /usr/ports/databases/mysql55-client/ && make deinstall WITH_XCHARSET=all clean
rm -R /var/db/mysql
Code:
cd /usr/ports/databases/mysql55-server/ && make install WITH_XCHARSET=all clean
cd /usr/ports/databases/mysql55-client/ && make install WITH_XCHARSET=all clean
echo 'mysql_enable="YES"' >> /etc/rc.conf
service mysql-server start
Then reboot, but when i compile db, I get the same error message.
Can someone give me a solution to fix this?

Thx,
SLZ
08/18/2014 10:22 grαyfox#2
post your makefile please
08/18/2014 10:50 TheSLZ#3
[Only registered and activated users can see links. Click Here To Register...]
08/18/2014 11:09 grαyfox#4
just add
PHP Code:
LIBDIR += -L/usr/local/lib/mysql 
08/18/2014 11:30 TheSLZ#5
Thx, Work :D

One question please,

Whitch should i use, mainline_released db, or simple mainline_db?
08/18/2014 11:48 grαyfox#6
there are very very very low diffrences between those 2 versions... i use the sg line...
08/18/2014 12:18 TheSLZ#7
Yeah, but can you write what's the different?