[TUTORIAL] Installing SAMP-MySQL v0.13 on 64bit Debian Linux
#1

Found no information about running this plugin ( http://forum.sa-mp.com/index.php?topic=23931.0 ) on Linux x64.

To make it work:

Code:
apt-get install ia32-libs
Copy libmysqlclient.so from original [RAZ]ADreNaLiNe-DJ samp-mysql-ubuntu.zip pack to /usr/lib32

Code:
cd /usr/lib32
ln -s libmysqlclient.so libmysqlclient.so.15
Then compile sampmysql.so (you have to add -m32 to both commands and -L/usr/lib32 to second command.)

Code:
gcc -Wall -fPIC -c sampmysql.cpp -DLINUX -ISDK/amx -m32 

gcc -shared -W1,-soname,sampmysql -o sampmysql.so *.o -L/usr/lib32 -lmysqlclient -m32
Loaded on Debian Linux x64
Quote:

[16:34:30] Loading plugin: sampmysql.so
[16:34:30]
/************************************************/
/* SAMP-MySQL v0.13 Plugin loaded successfully ! */
/************************************************/

Thanks goes to PeterB from www.evil.lv

Hope this helps!

P.S. I posted this so no more newbies reinstall their 64bit Linux to 32bit version.

Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)