我在尝试安装 GD 时遇到了困难。我正在运行 Mas OSX 10.9.2 darwin 13.0.1
当我运行这个时:
cpan[1]> 安装 GD
perl -MCPAN -e shell
我收到以下错误:
cpan[1]> install GD
Reading '/Users/me/.cpan/Metadata'
Database was generated on Sun, 21 Dec 2014 18:53:17 GMT
Running install for module 'GD'
Running make for L/LD/LDS/GD-2.56.tar.gz
Checksum for /Users/me/.cpan/sources/authors/id/L/LD/LDS/GD-2.56.tar.gz ok
Scanning cache /Users/me/.cpan/build for sizes
............................................................................DONE
CPAN.pm: Building L/LD/LDS/GD-2.56.tar.gz
Configuring for libgd version 2.0.11.
Checking for stray libgd header files...none found.
GD library used from: /usr/local
Please choose the features that match how libgd was built:
Undefined subroutine &main::prompt called at Build.PL line 169.
Warning: No success on command[/usr/bin/perl Build.PL ]
'YAML' not installed, will not store persistent state
LDS/GD-2.56.tar.gz
/usr/bin/perl Build.PL -- NOT OK
Running Build test
Make had some problems, won't test
Running Build install
Make had some problems, won't install
Could not read metadata file. Falling back to other methods to determine prerequisites
Failed during this command:
LDS/GD-2.56.tar.gz : writemakefile NO '/usr/bin/perl Build.PL ' returned status 512
Build.PL
正在尝试调用一个名为prompt
但它不存在。这是因为他们最近将构建系统从 ExtUtils::MakeMaker (Makefile.PL) 切换到 Module::Build (Build.PL),但没有完全转换程序。我有报告了该错误.
大多数人不会注意到这一点,因为只有当 GD 无法自行配置时才需要提示。它通过查找 gdlib-config 程序来完成此操作。如果找不到,或者不起作用,它会询问您的 gdlib 配置。最好让 gdlib-config 来处理这个问题。解决此问题的最佳方法是确保 gdlib-config 位于您的 PATH 中的某个位置并且gdlib-config --all
works.
否则替换所有实例prompt
in Build.PL
with Module::Build->prompt
它应该有效。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)