Failed (libmysqlclient_r.so.15: cannot open shared object file: No such file or directory)
#1

Hello

CentOS 6 64bit
VPS

I installed the plugin and I am getting this error making my gamemode useless
Failed (libmysqlclient_r.so.15: cannot open shared object file: No such file or directory)
I saw this: http://forum.sa-mp.com/showpost.php?...&postcount=553
But I am not sure where to put that file
Reply
#2

Use a static version of it.
Reply
#3

Are you using a Mysql plugin?
Yes, Is it needed?
No, Delete it and it's solved ( Worked for me)
Reply
#4

Quote:
Originally Posted by Konstantinos
View Post
Use a static version of it.
Tried it. No Luck. Same Issue
Code:
Failed (libmysqlclient_r.so.15: cannot open shared object file: No such file or directory)
Quote:
Originally Posted by firemanjv
View Post
Are you using a Mysql plugin?
Yes, Is it needed?
No, Delete it and it's solved ( Worked for me)
I do need it, the gamemode I am using also has a UCP and is designed to to mySQL - so yes it is needed, I don't know how you did it.

It says here:
Quote:

Running on Linux?

Having problems with libmysqlclient_r.so.X?

If you cannot do this, use the static build.
First of all, you must locate where your mysql libraries are located.
Mine are located at: /usr/local/mysql/lib/mysql
Now, open libc.conf located in /etc/ld.so.conf.d
Add the mysql libraries' path to the end of this file, on a new line.
Save the file, and execute: ldconfig

Do I need to follow those steps even though I am using the static build on my VPS

I am using the static build right now(https://sampforum.blast.hk/showthread.php?tid=122983), when I used this other mySQL plugin(https://sampforum.blast.hk/showthread.php?tid=56564) I had the exact same issue as I am having now.

Quote:
Originally Posted by Mow
View Post
http://mow.vg/files/libmysqlclient.so.15
Here you go.

Edit for 64bit Ubuntu 10.04 users:
Code:
(for versions of the mysql plugin requiring libmysqlclient.16: wget -c http://security.ubuntu.com/ubuntu/pool/m...067186wget -c http://mirrors.kernel.org/ubuntu/pool/un...67186mkdir mysql32
dpkg --extract libmysqlclient*deb mysql32
sudo mv mysql32/usr/lib/* /usr/lib32/
Getting this error when you do dpkg --extract libmysqlclient*deb mysql32?
Code:
dpkg-deb: --extract takes at most two arguments (.deb and directory)

Type dpkg-deb --help for help about manipulating *.deb files;
Type dpkg --help for help about installing and deinstalling packages.
This means you have multiple libmysqlclient*.deb files in the current folder.
For libmysqlclient15: dpkg --extract libmysqlclient15off_5.1.30really5.0.83-0ubuntu3_i386.deb mysql32
For libmysqlclient16: dpkg --extract libmysqlclient16_5.1.41-3ubuntu12.7_i386.deb mysql32
I also found this, I am not sure what to do, these commands make no sense, I am using Centos 6 64bit
Reply
#5

I got the rid of the error, however my gamemode is now saying
Run time error 19: "File or function is not found"
I realised that my gamemode has at the top include <a_mysql>, it seems to be using a different mysql plugin and when I changed that <a_mysql> to <mysql> heres what I got:

Code:
error 017: undefined symbol "mysql_get_field"(alot of these)
error 017: undefined symbol "mysql_retrieve_row"(2 of these)
error 017: undefined symbol "mysql_debug"(1 of this)
Do I have to find the equvilent functions for these functions?

Fixed: The file libmysqlclient.so.15 was renamed to libmysqlclient_r.so.15 and was placed inside /usr/lib. Restarted Server, worked like a charm.
Reply
#6

The links are dead
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)