perl安裝異常整理

G8bao7發表於2014-11-04

########################################## case 1
Bailout called.  Further testing stopped:  Unable to load DBD::mysql
#     Tried to use 'DBD::mysql'.
#     Error:  Can't load '*****/blib/arch/auto/DBD/mysql/mysql.so' for module DBD::mysql: libmysqlclient.so.18: cannot open shared object file: No such file or directory at /usr/lib64/perl5/DynaLoader.pm line 200.
#  at (eval 8) line 2
# Compilation failed in require at (eval 8) line 2.
# BEGIN failed--compilation aborted at (eval 8) line 2.
FAILED--Further testing stopped: Unable to load DBD::mysql
make: *** [test_dynamic] Error 255

######### 解決辦法
1、
ln -s /usr/local/mysql/lib/libmysqlclient.so.18 /usr/lib64/libmysqlclient.so.18
ln -s /usr/local/mysql/lib/libmysqlclient.so.18 /usr/lib/libmysqlclient.so.18

2、如果仍然報錯,則繼續執行
檢查/etc/ld.so.conf中是否包含 /usr/local/mysql/lib/mysql 和 /usr/local/mysql/ ,若沒有則新增。並執行ldconfig

點選(此處)摺疊或開啟

  1. [root@***]# more /etc/ld.so.conf
  2. include ld.so.conf.d/*.conf
  3. include /usr/local/mysql/lib/mysql
  4. include /usr/local/mysql/
  5. [root@***]# ldconfig


from: 

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26250550/viewspace-1320089/,如需轉載,請註明出處,否則將追究法律責任。

相關文章