ITPub博客

首页 > 应用开发 > IT综合 > perl安装异常整理

perl安装异常整理

原创 IT综合 作者:G8bao7 时间:2014-11-04 14:56:48 0 删除 编辑

########################################## 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: http://stackoverflow.com/questions/7456215/need-help-with-perl-error-in-using-dbdmysql

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/26250550/viewspace-1320089/,如需转载,请注明出处,否则将追究法律责任。

上一篇: postgresql笔记
请登录后发表评论 登录
全部评论

注册时间:2013-11-04

  • 博文量
    494
  • 访问量
    1198054