在CentOS 6.2上,perl v5.10.1和我无法安装XML :: SAX :: Expat。使用“cpan XML :: SAX :: Expat”
我解决了很多早期的问题(当我第一次尝试安装XML :: Simple时出现了很多错误)来自cpan config所需的丢失二进制文件(在我的例子中:unzip,make,lynx,patch ,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]
lynx [/ usr / bin / lynx]
制作[/ usr / bin / make]
make_arg []
make_install_arg []
make_install_make_command [/ usr / bin / make]
makepl_arg [INSTALLDIRS = site]
mbuild_arg []
mbuild_install_arg []
mbuild_install_build_command [./Build]
mbuildpl_arg [--installdirs site]
ncftp []
ncftpget []
no_proxy []
寻呼机[/ usr / bin / less]
密码undef
补丁[/ usr / bin / patch]
patches_dir undef
perl5lib_verbosity [v]
prefer_installer [MB]
prefs_dir [/root/.cpan/prefs]
prerequisites_policy [ask]
proxy_pass undef
proxy_user undef
randomize_urllist undef
scan_cache [atstart]
shell [/ bin / bash]
show_unparsable_versions [0]
show_upload_date [0]
show_zero_versions [0]
tar [/ bin / tar]
tar_verbosity [v]
term_is_latin [1]
term_ornaments [1]
test_report [0]
trust_test_report_history [0]
解压缩[/ usr / bin / unzip]
urllist
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/]
use_sqlite [0]
用户名undef
wait_list undef
wget [/ usr / bin / wget]
yaml_load_code [0]
yaml_module [YAML]
答案 0 :(得分:3)
答案 1 :(得分:2)
对于debian发行版安装libxml-sax-expat-incremental-perl然后从CPAN安装XML :: Simple模块
sudo apt-get install libxml-sax-expat-incremental-perl
答案 2 :(得分:0)
试试这个: make clean XML :: Simple
答案 3 :(得分:0)
对于Debian发行版,还可以直接安装XML :: Simple:
apt-cache search XML::Simple | grep simple
apt-get install libxml-simple-perl
perl -MFile::Find=find -MFile::Spec::Functions -Tlw -e 'find { wanted => sub { print canonpath $_ if /\.pm\z/ }, no_chdir => 1 }, @INC' 2> /dev/null | grep -i xml/simple