PDA

View Full Version : libmysqlclient.so.18: cannot open shared object file: No such file or directory


sampkinq
15/04/2017, 07:35 PM
Hello, I'm getting this error when running my server. Can you help me ?
I use OS: CentOS 7 64-bit


----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3.7-R2, (C)2005-2015 SA-MP Team

[22:23:59] filterscripts = "" (string)
[22:23:59] password = "" (string)
[22:23:59]
[22:23:59] Server Plugins
[22:23:59] --------------
[22:23:59] Loading plugin: crashdetect.so
[22:23:59] CrashDetect v4.18.1 is OK.
[22:23:59] Loaded.
[22:23:59] Loading plugin: streamer.so
[22:23:59]

*** Streamer Plugin v2.8.2 by Incognito loaded ***

[22:23:59] Loaded.
[22:23:59] Loading plugin: sscanf.so
[22:23:59]

[22:23:59] ===============================

[22:23:59] sscanf plugin loaded.

[22:23:59] Version: 2.8.1

[22:23:59] (c) 2012 Alex "******" Cole

[22:23:59] ===============================

[22:23:59] Loaded.
[22:23:59] Loading plugin: mysql.so
[22:23:59] Failed (libmysqlclient.so.18: cannot open shared object file: No such file or directory)
[22:23:59] Loading plugin: Whirlpool.so
[22:23:59] Failed (plugins/Whirlpool.so: wrong ELF class: ELFCLASS64)
[22:23:59] Loaded 3 plugins.

[22:23:59]
[22:23:59] Filterscripts
[22:23:59] ---------------
[22:23:59] Loaded 0 filterscripts.

[22:23:59] [debug] Run time error 19: "File or function is not found"
[22:23:59] [debug] cache_get_row_count
[22:23:59] [debug] SSCANF_IsConnected
[22:23:59] [debug] mysql_init_options
[22:23:59] [debug] mysql_set_option
[22:23:59] [debug] mysql_connect
[22:23:59] [debug] mysql_close
[22:23:59] [debug] mysql_format
[22:23:59] [debug] mysql_tquery
[22:23:59] [debug] mysql_query
[22:23:59] [debug] cache_get_value_name_int
[22:23:59] [debug] cache_delete
[22:23:59] [debug] cache_get_value_name
[22:23:59] [debug] WP_Hash
[22:23:59] [debug] cache_insert_id
[22:23:59] [debug] mysql_errno
[22:23:59] [debug] cache_get_field_count
[22:23:59] [debug] cache_get_value_name_float
[22:23:59] [debug] Run time error 19: "File or function is not found"
[22:23:59] [debug] cache_get_row_count
[22:23:59] [debug] SSCANF_IsConnected
[22:23:59] [debug] mysql_init_options
[22:23:59] [debug] mysql_set_option
[22:23:59] [debug] mysql_connect
[22:23:59] [debug] mysql_close
[22:23:59] [debug] mysql_format
[22:23:59] [debug] mysql_tquery
[22:23:59] [debug] mysql_query
[22:23:59] [debug] cache_get_value_name_int
[22:23:59] [debug] cache_delete
[22:23:59] [debug] cache_get_value_name
[22:23:59] [debug] WP_Hash
[22:23:59] [debug] cache_insert_id
[22:23:59] [debug] mysql_errno
[22:23:59] [debug] cache_get_field_count
[22:23:59] [debug] cache_get_value_name_float
[22:23:59] Script[gamemodes/bla.amx]: Run time error 19: "File or function is not found"
[22:23:59] Number of vehicle models: 0

AndreiWow
15/04/2017, 07:35 PM
You have to re-install mariadb on your vps and mariadb-shared should be installed, that's the one with libmysql.


Try newest version: 10.1 https://downloads.mariadb.org/mariadb/repositories/#mirror=coreix&distro=CentOS&distro_release=centos7-amd64--centos7&version=10.1

You have the turorial there but it won't tell you how to make a new file,

try

touch filename
to make a new file

after the installation you will have to start MySQL again, it will be stopped.

if it doesn't work

try doing it manually placing it in the server folder, the libmysql that will be found on your vps

credits to 1nspire who solved this

sampkinq
15/04/2017, 09:11 PM
Thank you for your attention, but failed with the two options.

AndreiWow
15/04/2017, 10:17 PM
You also failed placing the libmysql manually?

1nspire
15/04/2017, 10:24 PM
I've been struggling with that for awhile, ended up importing the file manually into my server folder, so here you go, place that in your server root directory.

libmysql.so.18 (https://www.solidfiles.com/v/8NLja75aenkry)

About the Whirlpool plugin, which will prevent you from starting your gamemode, you need the 64-bit version of the plugin, you're currently using the 32-bit, hence the error, tell me if you cant find the correct version and I'll upload it for you.

Just a tip if you face any issues with MySQL socket when connecting to your database, use '127.0.0.1' instead of 'localhost' for the connection.

Nokia17Rocks
28/02/2018, 12:56 AM
I've been struggling with that for awhile, ended up importing the file manually into my server folder, so here you go, place that in your server root directory.

libmysql.so.18 (https://www.solidfiles.com/v/8NLja75aenkry)

About the Whirlpool plugin, which will prevent you from starting your gamemode, you need the 64-bit version of the plugin, you're currently using the 32-bit, hence the error, tell me if you cant find the correct version and I'll upload it for you.

Just a tip if you face any issues with MySQL socket when connecting to your database, use '127.0.0.1' instead of 'localhost' for the connection.

Thanks friend! You do not know how much I was struggling with this, I even got to reinstall the vps to change version of Centos (From 6 to 7 [64bits both])

I had MariaDB 10.2 installed but I do not know why I did not have the 32 bits version installed

I thank you for the file that you have uploaded.

regards