在 CentOS 6.2、perl v5.10.1 上,我无法安装 XML::SAX::Expat。使用“cpan XML::SAX::Expat”
我解决的许多早期问题(当我第一次尝试安装 XML::Simple 时出现更多错误)来自缺少 cpan 配置所需的二进制文件(在我的情况下:解压缩、制作、lynx、补丁、gcc、 FTP)。由于这是唯一无法安装的模块(所有其他先决条件都已安装),我的印象是我已经安装了所有操作系统要求(通过 yum)。我是否正确假设这一点?
顺便说一句,没有创建 histfile。我应该对 /root/.cpan/ 应用哪些权限?
接下来我应该尝试什么?强制安装可以吗?
All tests successful.
Files=13, Tests=486, 12 wallclock secs ( 0.07 usr 0.01 sys + 1.84 cusr 0.07 csys = 1.99 CPU)
Result: PASS
GRANTM/XML-Simple-2.20.tar.gz
Tests succeeded but one dependency not OK (XML::SAX::Expat)
GRANTM/XML-Simple-2.20.tar.gz
[dependencies] -- NA
Running make install
make test had returned bad status, won't install without force
Failed during this command:
TODDR/XML-Parser-2.41.tar.gz : make NO
BJOERN/XML-SAX-Expat-0.40.tar.gz : make_test NO
GRANTM/XML-Simple-2.20.tar.gz : make_test NO one dependency not OK (XML::SAX::Expat)
cpan conf 的输出:
load_module_verbosity [v]
猞猁 [/usr/bin/lynx]
制作 [/usr/bin/make]
make_arg []
make_install_arg []
make_install_make_command [/usr/bin/make]
makepl_arg [安装目录=站点]
mbuild_arg []
mbuild_install_arg []
mbuild_install_build_command [./Build]
mbuildpl_arg [--installdirs 站点]
ncftp []
ncftpget []
no_proxy []
寻呼机 [/usr/bin/less]
密码未定义
补丁 [/usr/bin/补丁]
patch_dir undef
perl5lib_verbosity [v]
首选安装程序 [MB]
prefs_dir [/root/.cpan/prefs]
先决条件_政策 [问]
proxy_pass undef
proxy_user undef
randomize_urllist undef
scan_cache [开始]
外壳 [/bin/bash]
show_unparsable_versions [0]
显示上传日期 [0]
显示零版本 [0]
焦油 [/bin/tar]
tar_verbosity [v]
term_is_latin [1]
术语_装饰品 [1]
测试报告 [0]
trust_test_report_history [0]
解压 [/usr/bin/unzip]
网址列表
0 [ftp://cpan.pair.com/pub/CPAN/] 1 [ftp://ftp-mirror.internap.com/pub/CPAN/] 2 [ftp://cpan.cs.utah.edu/CPAN/] 3 [ftp://mirror.atlantic.net/pub/CPAN/] 4 [http://httpupdate19.cpanel.net/CPAN/]
使用_sqlite [0]
用户名 undef
wait_list undef
wget [/usr/bin/wget]
yaml_load_code [0]
yaml_module [YAML]