libmysqlclient.so.18:无法打开共享对象文件:没有此文件或目录

libmysqlclient.so.18:无法打开共享对象文件:没有此文件或目录

我正在尝试从运行 64 位 CentOS 7 的服务器上启动一个脚本,但是每当我启动该脚本时,服务器日志中都会出现此错误。

Loaded log file: "server_log.txt".
SA-MP Dedicated Server

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

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

[08:02:23]  ===============================

[08:02:23]       sscanf plugin loaded.    

[08:02:23]          Version:  2.8.1        

[08:02:23]    (c) 2012 Alex "Y_Less" Cole  

[08:02:23]  ===============================

[08:02:23]   Loaded.
[08:02:23]  Loading plugin: Whirlpool.so
[08:02:23]  
[08:02:23]  ==================
[08:02:23]  
[08:02:23]   Whirlpool loaded
[08:02:23]  
[08:02:23]  ==================
[08:02:23]  
[08:02:23]   Loaded.
[08:02:23]  Loading plugin: nativechecker.so
[08:02:23]   Loaded.
[08:02:23]  Loaded 5 plugins.

[08:02:23] I couldn't load any gamemode scripts. Please verify your server.cfg
[08:02:23] It needs a gamemode0 line at the very least.

因此脚本无法启动。我认为问题出在以下行:libmysqlclient.so.18:无法打开共享对象文件:没有此文件或目录。在 CentOS 中我该如何修复此问题?

谢谢!

答案1

在 CentOS 7 上,libmysqlclient.so.18 位于 mariadb-libs 包中,因此请检查该包是否已安装,如果未安装:

yum install mariadb-libs

相关内容