安裝ruby-mysql(同樣適用於其他軟件包)時出現以下錯誤:
Error: Package: ruby-mysql-2.7.3-1.el5.x86_64 (epel) Requires: libmysqlclient.so.15(libmysqlclient_15)(64bit) Error: Package: ruby-mysql-2.7.3-1.el5.x86_64 (epel) Requires: libmysqlclient.so.15()(64bit) You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest
顯然原因是缺少依賴庫
下載地址:
MySQL-shared-compat-5.1.47-1.rhel5.x86_64.rpm
rpm -ivh MySQL-shared-compat-5.1.47-1.rhel5.x86_64.rpm
安裝rpm包後即可順利進行!