【问题标题】:Trying to install DBD::mysql using macports mysql and perl fails make test [Snow Leopard]尝试使用 macports mysql 和 perl 安装 DBD::mysql 失败 make test [Snow Leopard]
【发布时间】: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

有什么想法吗?谢谢。

【问题讨论】:

标签: mysql perl macos


【解决方案1】:

我会先尝试安装 Macports 版本的 DBD::mysql:

sudo port install p5-dbd-mysql

如果这不起作用,请尝试 cpanm:

cpanm -S DBD::Mysql

仅将手动安装作为最后的手段。

【讨论】:

    猜你喜欢
    • 2023-03-04
    • 1970-01-01
    • 1970-01-01
    • 2011-06-11
    • 1970-01-01
    • 1970-01-01
    • 2010-11-25
    • 2011-08-21
    • 1970-01-01
    相关资源
    最近更新 更多