CentOS 6 Server help needed.
#1

Failed (libmysqlclient.so.18: cannot open shared object file: No such file or directory)

I think this is the importants thing to have.

SA-MP Dedicated Server
----------------------
v0.3.7-R2, ©2005-2015 SA-MP Team

[18:24:32]
[18:24:32] Server Plugins
[18:24:32] --------------
[18:24:32] Loading plugin: crashdetect.so
[18:24:33] CrashDetect v4.12 is OK.
[18:24:33] Loaded.
[18:24:33] Loading plugin: mysql.so
[18:24:33] Failed (libmysqlclient.so.18: cannot open shared object file: No such file or directory)
[18:24:33] Loading plugin: streamer.so
[18:24:33] Loaded.
[18:24:33] Loading plugin: sscanf.so
[18:24:33]

[18:24:33] ===============================

[18:24:33] sscanf plugin loaded.

[18:24:33] Version: 2.8.1

[18:24:33] © 2012 Alex "******" Cole

[18:24:33] ===============================

[18:24:33] Loaded.
[18:24:33] Loading plugin: Whirlpool.so
[18:24:33]
[18:24:33] ==================
[18:24:33]
[18:24:33] Whirlpool loaded
[18:24:33]
[18:24:33] ==================
[18:24:33]
[18:24:33] Loaded.
[18:24:33] Loading plugin: nativechecker.so
[18:24:33] Loaded.
[18:24:33] Loaded 5 plugins.

[18:24:33]
[18:24:33] Filterscripts
[18:24:33] ---------------
[18:24:33] Loading filterscript 'mappingS.amx'...
[18:24:33]
--------------------------------------
[18:24:33] Los Santos Roleplay Mapping
[18:24:33] Made by Spydah
[18:24:33] --------------------------------------

[18:24:33] Loaded 1 filterscripts.

[18:24:33] Error: Function not registered: 'mysql_connect'
[18:24:33] Error: Function not registered: 'mysql_errno'
[18:24:33] Error: Function not registered: 'mysql_tquery'
[18:24:33] Error: Function not registered: 'cache_get_field_content'
[18:24:33] Error: Function not registered: 'mysql_escape_string'
[18:24:33] Error: Function not registered: 'cache_get_data'
[18:24:33] Error: Function not registered: 'cache_affected_rows'
[18:24:33] Error: Function not registered: 'cache_insert_id'
[18:24:33] Error: Function not registered: 'cache_get_row'
[18:24:33] [debug] Run time error 19: "File or function is not found"
[18:24:33] [debug] mysql_connect
[18:24:33] [debug] mysql_errno
[18:24:33] [debug] mysql_tquery
[18:24:33] [debug] cache_get_field_content
[18:24:33] [debug] mysql_escape_string
[18:24:33] [debug] cache_get_data
[18:24:33] [debug] cache_affected_rows
[18:24:33] [debug] cache_insert_id
[18:24:33] [debug] cache_get_row
[18:24:33] [debug] Run time error 19: "File or function is not found"
[18:24:33] [debug] mysql_connect
[18:24:33] [debug] mysql_errno
[18:24:33] [debug] mysql_tquery
[18:24:33] [debug] cache_get_field_content
[18:24:33] [debug] mysql_escape_string
[18:24:33] [debug] cache_get_data
[18:24:33] [debug] cache_affected_rows
[18:24:33] [debug] cache_insert_id
[18:24:33] [debug] cache_get_row
[18:24:33] Script[gamemodes/southrp.amx]: Run time error 19: "File or function is not found"
[18:24:33] Number of vehicle models: 0
[18:24:33] New version of CrashDetect is available for download (4.13)

It's all in the right places and changed plugins to .so in server.cfg and I have the .so files in the plugin maps..
Reply
#2

Код:
[18:24:33] Failed (libmysqlclient.so.18: cannot open shared object file: No such file or directory)
Try changing the permissions to 777 (chmod)
Or maybe you should create a directory itself.
Reply
#3

Quote:
Originally Posted by [UE]Milan
Посмотреть сообщение
Код:
[18:24:33] Failed (libmysqlclient.so.18: cannot open shared object file: No such file or directory)
Try changing the permissions to 777 (chmod)
Or maybe you should create a directory itself.
You obviously don't pay attention... You should NEVER suggest 777.....




What it is, is he's missing the runtimes and dependencies for the mysql plugin.

DON'T FOLLOW ANYTHING IN THESE LINKS.

https://sampforum.blast.hk/showthread.php?tid=379645
https://sampforum.blast.hk/showthread.php?tid=539960
https://sampforum.blast.hk/showthread.php?tid=348761



and a crappy "fix" (Again, Don't follow anything)

https://sampforum.blast.hk/showthread.php?tid=537714

Quote:
Originally Posted by Vince
Посмотреть сообщение
It's just a hacked together solution, though. It's comparable to downloading DLL files for Windows from random websites. A bad idea. Libraries should be installed by or with the application that requires them.
To which the ACTUAL "fix" is to get the APPROPRIATE DEPENDENCIES for the plugin, from the CentOS sources.




Crazy though to think anyone would simply search on the actual error "Failed (libmysqlclient.so.18: cannot open shared object file: No such file or directory)"


mysql-libs.x86_64 looks like something to look at.
Reply
#4

Load mysql_static.so instead.
Reply
#5

Quote:
Originally Posted by amirm3hdi
Посмотреть сообщение
Load mysql_static.so instead.
I guess that worked bro, thank you very much!
Reply
#6

It's saying this now
Код:
samp03svr: /root/sampgdk/src/internal/plugin.c:49; sampgdk_plugin_unregister: As sertion 'plugin != ((void *)0)' failed
In putty
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)