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