1
我最近通过macports安装了mysql5和perl5,以试图破坏以前的运行perl脚本体系结构差异问题(作为OSX10.6)。试图安装DBD :: mysql使用macports mysql和perl失败make test [Snow Leopard]
下载了DBD :: mysql包并试图手动安装它。
perl Makefile运行良好,正如所做的那样。
化妆测试,但是,产生如下:
PERL_DL_NONLAZY=1 /opt/local/bin/perl5 "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00base....................ok 1/6
# Failed test 'use DBD::mysql;'
# at t/00base.t line 21.
# Tried to use 'DBD::mysql'.
# Error: Can't load '/Users/ianseyer/Downloads/DBD-mysql- 4.011/blib/arch/auto/DBD/mysql/mysql.bundle' for module DBD::mysql: dlopen(/Users/ianseyer/Downloads/DBD-mysql-4.011/blib/arch/auto/DBD/mysql/mysql.bundle, 2): Symbol not found: _is_prefix
# Referenced from: /Users/ianseyer/Downloads/DBD-mysql- 4.011/blib/arch/auto/DBD/mysql/mysql.bundle
# Expected in: dynamic lookup
# at (eval 7) line 2
# Compilation failed in require at (eval 7) line 2.
# BEGIN failed--compilation aborted at (eval 7) line 2.
t/00base....................NOK 2/6FAILED--Further testing stopped: Unable to load DBD::mysql
make: *** [test_dynamic] Error 255
任何想法?谢谢。
为什么不使用CPAN shell来安装模块? http://search.cpan.org/~andk/CPAN-1.9402/lib/CPAN.pm – 2011-02-24 03:28:28