我正在嘗試從運行 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