SA-MP Forums Archive
Problem with database. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Problem with database. (/showthread.php?tid=629897)



Problem with database. - cuemur - 05.03.2017

Failed (libmysqlclient.so.18: wrong ELF class: ELFCLASS64) - Using Ubuntu 14.04 and MYSQL 5.7 help.
i couldnt manage to find libmysqlclient.so.18 32 bit version.


Server compiled and using pBlueG/SA-MP-MySQL R39-6.

Code:
[12:39:05]  Loading plugin: mysql.so
[12:39:05]   Failed (libmysqlclient.so.18: wrong ELF class: ELFCLASS64)



Re: Problem with database. - cuemur - 05.03.2017

Found solution.
wget http://launchpadlibrarian.net/212188...untu1_i386.deb
sudo dpkg -i libmysqlclient18_5.6.25-0ubuntu1_i386.deb
rm libmysqlclient18_5.6.25-0ubuntu1_i386.deb

wget http://launchpadlibrarian.net/212189...ntu1_amd64.deb
sudo dpkg -i libmysqlclient18_5.6.25-0ubuntu1_amd64.deb
rm libmysqlclient18_5.6.25-0ubuntu1_amd64.deb


Re: Problem with database. - Sew_Sumi - 05.03.2017

It's not a good idea in the slightest to be installing deb packages from other sources.

Also I pointed out the real solution to this just 2 days back... You're running a 64 bit OS, with a plugin that's 32 bit, and not enabling the i386 architecture.


Re: Problem with database. - Nezcafe - 06.03.2017

Quote:
Originally Posted by cuemur
View Post
Failed (libmysqlclient.so.18: wrong ELF class: ELFCLASS64) - Using Ubuntu 14.04 and MYSQL 5.7 help.
i couldnt manage to find libmysqlclient.so.18 32 bit version.


Server compiled and using pBlueG/SA-MP-MySQL R39-6.

Code:
[12:39:05]  Loading plugin: mysql.so
[12:39:05]   Failed (libmysqlclient.so.18: wrong ELF class: ELFCLASS64)
Use mysql_static.so? If you need link to it i can get you, because some people doesn't like using links provided by others...



Re: Problem with database. - Sew_Sumi - 06.03.2017

Quote:
Originally Posted by Nezcafe
View Post

Use mysql_static.so? If you need link to it i can get you, because some people doesn't like using links provided by others...
It's actually available on the release page of the mysql plugin, but actually fixing the problem rather than avoiding it, is always better.

The reason why no-one should be handing out links to "other" places is because ANYONE could make a virus/exploit in that compiled version.

By linking external sources, you encourage downloading, installing and running executables from non-verified sources.

Not to mention that the source should always be from the actual source (Due to it being someone elses work, and that source, will be where the updates are), not just from random places.


It's not because it's "not liked", it's because it's highly stupid, and dangerous.