【发布时间】:2011-07-03 03:10:17
【问题描述】:
我最近通过 macports 安装了 mysql5 和 perl5,以尝试颠覆早期运行 perl 脚本架构差异的问题(从 OSX10.6 开始引入)。
已下载 DBD::mysql 包并寻求手动安装。
perl Makefile 运行良好,make 也一样。
但是,make test 会产生以下结果:
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 来安装模块? search.cpan.org/~andk/CPAN-1.9402/lib/CPAN.pm