[TUTORIAL] Installing SAMP-MySQL v0.13 on 64bit Debian Linux -
Janhouse - 09.03.2009
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.
Re: [TUTORIAL] Installing SAMP-MySQL v0.13 on 64bit Debian Linux -
Burridge - 10.03.2009
nice tutorial

may help other people.
Re: [TUTORIAL] Installing SAMP-MySQL v0.13 on 64bit Debian Linux -
Newman - 20.03.2009
Is this for Debian 4 or 5?
Because i have problems to compile the 2. one:
gcc -shared -W1,-soname,sampmysql -o sampmysql.so *.o -L/usr/lib32 -lmysqlclient -m32
Here what i get:
common-sponsoring:/home/gab# gcc -shared -W1,-soname,sampmysql -o sampmysql.so *.o -L/usr/lib32 -lmysqlclient -m32
/usr/bin/ld: skipping incompatible /usr/bin/../lib/libc.so when searching for -lc
/usr/bin/ld: skipping incompatible /usr/bin/../lib/libc.a when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
/usr/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
common-sponsoring:/home/gab#
I have Debian 4 64bit - thanks for help!
Re: [TUTORIAL] Installing SAMP-MySQL v0.13 on 64bit Debian Linux -
Gibox - 20.03.2009
Quote:
Originally Posted by Newman
Is this for Debian 4 or 5?
|
5
Re: [TUTORIAL] Installing SAMP-MySQL v0.13 on 64bit Debian Linux -
Obieater - 02.04.2009
Maybe some Errors....
Change alle /usr/lib32 to /emul/ia32-linux/usr/lib because /usr/lib32 is a linking to the main folder /emul/ia32-linux/usr/lib .
Re: [TUTORIAL] Installing SAMP-MySQL v0.13 on 64bit Debian Linux -
Dreftas - 10.04.2009
on ap-get install ia32-libs i get:
Code:
Couldn't find package ia32-libs
:/ how to fix?
Re: [TUTORIAL] Installing SAMP-MySQL v0.13 on 64bit Debian Linux -
ADreNaLiNe-DJ - 10.04.2009
refresh apt repositories with something like apt-get update....
Quote:
Originally Posted by Dreftas
on ap-get install ia32-libs i get:
Code:
Couldn't find package ia32-libs
:/ how to fix?
|
Re: [TUTORIAL] Installing SAMP-MySQL v0.13 on 64bit Debian Linux -
Ernis456 - 13.07.2010
vps:~/samp/plugins# gcc -Wall -fPIC -c sampmysql.cpp -DLINUX -ISDK/amx -m32
-bash: gcc: command not found
And I can't compile file.
Re: [TUTORIAL] Installing SAMP-MySQL v0.13 on 64bit Debian Linux -
kadaradam - 14.08.2013
Code:
root@kadaradam:~# apt-get install ia32-libs
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
ia32-libs : Depends: lib32bz2-1.0 but it is not going to be installed
Depends: lib32asound2 (> 1.0.18) but it is not going to be installe d
Depends: lib32gcc1 (>= 1:4.1.1) but it is not going to be installed
Depends: lib32ncurses5 (>= 5.7+20100313) but it is not going to be installed
Depends: lib32stdc++6 (>= 4.1.1) but it is not going to be installe d
Depends: lib32v4l-0 (>= 0.5.0) but it is not going to be installed
Depends: lib32z1 (>= 1:1.2.3.3.dfsg) but it is not going to be inst alled
PreDepends: libc6-i386 (>= 2.9-18) but it is not going to be instal led
teamviewer : Depends: libc6-i386 (>= 2.4) but it is not going to be installed
Depends: lib32asound2 but it is not going to be installed
Depends: lib32z1 but it is not going to be installed
Depends: libxext6 but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a s olution).
Any idea?
i have also updated my VPS. (apt-get update)
Re: [TUTORIAL] Installing SAMP-MySQL v0.13 on 64bit Debian Linux -
Inn0cent - 14.08.2013
Wrong Place Pal,Post there
http://forum.sa-mp.com/forumdisplay.php?f=70