09.03.2009, 14:55
Found no information about running this plugin ( http://forum.sa-mp.com/index.php?topic=23931.0 ) on Linux x64.
To make it work:
Copy libmysqlclient.so from original [RAZ]ADreNaLiNe-DJ samp-mysql-ubuntu.zip pack to /usr/lib32
Then compile sampmysql.so (you have to add -m32 to both commands and -L/usr/lib32 to second command.)
Loaded on Debian Linux x64
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.
To make it work:
Code:
apt-get install ia32-libs
Code:
cd /usr/lib32 ln -s libmysqlclient.so libmysqlclient.so.15
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
Quote:
[16:34:30] Loading plugin: sampmysql.so [16:34:30] /************************************************/ /* SAMP-MySQL v0.13 Plugin loaded successfully ! */ /************************************************/ |
Hope this helps!
P.S. I posted this so no more newbies reinstall their 64bit Linux to 32bit version.