在@INC 中找不到 Module/Build.pm(@INC 包含:/usr/local/lib64/perl5 [英] Can't locate Module/Build.pm in @INC (@INC contains: /usr/local/lib64/perl5

查看:61
本文介绍了在@INC 中找不到 Module/Build.pm(@INC 包含:/usr/local/lib64/perl5的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 Centos 6 并安装 Perl-CPAN 和开发工具.我似乎无法安装 Test:Harness::Straps 它得到这个错误:

Im using Centos 6 and install Perl-CPAN and Developement Tools. I cannot seem to install Test:Harness::Straps it get this error:

Can't locate Module/Build.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at Build.PL line 3.
BEGIN failed--compilation aborted at Build.PL line 3.
Warning: No success on command[/usr/bin/perl Build.PL --installdirs site]

这是我的系统:

[rileyta@tpcvm106 Downloads]$ uname -a
Linux tpcvm106 2.6.32-220.7.1.el6.centos.plus.x86_64 #1 SMP Wed Mar 7 11:06:23 GMT 2012 x86_64 x86_64 x86_64 GNU/Linux

[rileyta@tpcvm106 Downloads]$ perl -v

This is perl, v5.10.1 (*) built for x86_64-linux-thread-multi

Copyright 1987-2009, Larry Wall

[rileyta@tpcvm106 Downloads]$ rpm -ql perl-Params-Validate
/usr/lib64/perl5/Attribute
/usr/lib/64/perl5/Attribute/Params
/usr/lib64/perl5/Attribute/Params/Validate.pm
/usr/lib64/perl5/Params
/usr/lib64/perl5/Params/Validate.pm
/usr/lib64/perl5/Params/ValidatePP.pm
/usr/lib64/perl5/Params/ValidateXS.pm
/usr/lib64/perl5/auto/Params
/usr/lib64/perl5/auto/Params/Validate
/usr/lib64/perl5/auto/Params/Validate/Validate.bs
/usr/lib64/perl5/auto/Params/Validate/Validate.so
/usr/share/doc/perl-Params-Validate-0.92
/usr/share/doc/perl-Params-Validate-0.92/Changes
/usr/share/doc/perl-Params-Validate-0.92/LICENSE
/usr/share/doc/perl-Params-Validate-0.92/README
/usr/share/doc/perl-Params-Validate-0.92/TODO
/usr/share/man/man3/Attribute::Params::Validate.3pm.gz
/usr/share/man/man3/Params::Validate.3pm.gz
/usr/share/man/man3/Params::ValidatePP.3pm.gz
/usr/share/man/man3/Params::ValidateXS.3pm.gz

这是我的 cpan 设置:

Here is my cpan settings:

cpan[2]> o conf
$CPAN::Config options from /usr/share/perl5/CPAN/Config.pm:
commit             [Commit changes to disk]
defaults           [Reload defaults from disk]
help               [Short help about 'o conf' usage]
init               [Interactive setting of all options]
applypatch         undef
auto_commit        [1]
build_cache        [100]
build_dir          [/root/.cpan/build]
build_dir_reuse    [0]
build_requires_install_policy [yes]
bzip2              undef
cache_metadata     [1]
check_sigs         [0]
colorize_debug     undef
colorize_output    undef
colorize_print     undef
colorize_warn      undef
commandnumber_in_prompt [1]
commands_quote     undef
connect_to_internet_ok [0]
cpan_home          [/root/.cpan]
curl               undef
dontload_hash      undef
dontload_list      undef
ftp                undef
ftp_passive        [1]
ftp_proxy          []
ftpstats_period    undef
ftpstats_size      undef
getcwd             [cwd]
gpg                undef
gzip               undef
halt_on_failure    [0]
histfile           undef
histsize           undef
http_proxy         []
inactivity_timeout [0]
index_expire       [1]
inhibit_startup_message [0]
keep_source_where  [/root/.cpan/sources]
load_module_verbosity [v]
lynx               undef
make               undef
make_arg           []
make_install_arg   []
make_install_make_command []
makepl_arg         [INSTALLDIRS=site]
mbuild_arg         []
mbuild_install_arg []
mbuild_install_build_command [sudo ./Build]
mbuildpl_arg       [--installdirs site]
ncftp              undef
ncftpget           undef
no_proxy           []
pager              [/usr/bin/less]
password           undef
patch              undef
patches_dir        undef
perl5lib_verbosity [v]
prefer_external_tar undef
prefer_installer   [MB]
prefs_dir          [/root/.cpan/prefs]
prerequisites_policy [ignore]
proxy_pass         undef
proxy_user         undef
randomize_urllist  undef
scan_cache         [atstart]
shell              [/bin/sh]
show_unparsable_versions undef
show_upload_date   [0]
show_zero_versions undef
tar                undef
tar_verbosity      [v]
term_is_latin      [1]
term_ornaments     [1]
test_report        undef
trust_test_report_history [0]
unzip              undef
urllist             0 [www.cpan.org]    1 [http://mirror.uta.edu/CPAN/]     2 [ftp://mirror.quintex.com/CPAN/]  3 [http://cpan.cs.utah.edu/CPAN/]
use_sqlite         [0]
username           undef
version_timeout    undef
wait_list          undef
wget               undef
yaml_load_code     [0]
yaml_module        undef

我应该更改 mbuild_install_build_command 吗????我使用 sudo 在这个 cpu 上执行.

Should I change the mbuild_install_build_command????? I use sudo to execute on this cpu.

我尝试遵循此站点的其他解决方案,但我仍然收到该错误,并且由于 Module::Build 错误而无法安装其他 TAP.是我安装了 perl-CPAN 而不是 yum 版本还是我应该去 5.10.1 以外的另一个版本

I tried to follow other solution from this site but I still get that error and cannot install other TAP because of the Module::Build error. Is it that I install perl-CPAN and not yum version or should I go to another version other than 5.10.1

推荐答案

只安装 Module::Build first

Just install Module::Build first

cpan Module::Build

这篇关于在@INC 中找不到 Module/Build.pm(@INC 包含:/usr/local/lib64/perl5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆