《Mysql必读MySQL 的模块不能安装的解决方法》要点:
本文介绍了Mysql必读MySQL 的模块不能安装的解决方法,希望对您有用。如果有疑问,可以联系我们。
MYSQL实例我们最常用的 DBD::mysql 模块,我发现是难住很多人的地方.因为安装老是失败,下面我介绍一下解决方法,比如我使用 cpanm 安装,有时就出 /home/nue2501j/work/DBD-mysql-4.010/blib/arch/auto/DBD/mysql/mysql.so: undefined symbol: DBIc_TRACE_LEVEL at /usr/lib/perl5/5.8.5/i386-linux-thread-multi/DynaLoader.pm line 230.
MYSQL实例如下
MYSQL实例1.
MYSQL实例
# cpanm DBD::mysql
MYSQL实例出错
MYSQL实例
# Tried to use 'DBD::mysql'.
# Error: Can't load '/home/nue2501j/work/DBD-mysql-4.010/blib/arch/auto/DBD/mysql/mysql.so' for module DBD::mysql: /home/nue2501j/work/DBD-mysql-4.010/blib/arch/auto/DBD/mysql/mysql.so: undefined symbol: DBIc_TRACE_LEVEL at /usr/lib/perl5/5.8.5/i386-linux-thread-multi/DynaLoader.pm line 230.
# at (eval 4) line 2
# Compilation failed in require at (eval 4) line 2.
# BEGIN failed--compilation aborted at (eval 4) line 2.
FAILED--Further testing stopped: Unable to load DBD::mysql
make: *** [test_dynamic] Error 9
MYSQL实例2. [代码][SQL]代码
MYSQL实例解决方法
MYSQL实例
$ sudo perl -MCPAN -e shell
cpan> install Bundle::DBD::mysql
/usr/bin/make -- OK
/usr/bin/make test -- OK
/usr/bin/make install -- OK
cpan> install DBD::mysql
DBD::mysql is up to date.
MYSQL实例以上所述就是本文的全部内容了,希望大家能够喜欢.
转载请注明本页网址:
http://www.vephp.com/jiaocheng/3856.html