/ usr / bin / perl install-module.pl DateTime

时间:2012-09-24 12:22:19

标签: yaml bugzilla

在RHEL上安装bugzilla时,会检查所需的模块: ./checksetup.pl --check-modules

它显示了一些不可用的模块。

在尝试安装其中一个时,我遇到了以下错误:

[root@localhost bugzilla-4.2.3]# /usr/bin/perl install-module.pl DateTime

Checking for                 CPAN (v1.81)     ok: found v1.94 

**Checking for                 YAML (any)       not found** 

Checking for   ExtUtils-MakeMaker (v6.31)     ok: found v6.55_02 

CPAN: Storable loaded ok (v2.20)

CPAN: LWP::UserAgent loaded ok (v5.833)

CPAN: Time::HiRes loaded ok (v1.9721)

Warning: no success downloading '/root/.cpan/source/authors/01mailrc.txt.gz.tmp19575'. 

Giving up on it. at `/usr/share/perl5/CPAN/Index.pm line 225`


Fetching with LWP:

http://www.perl.org/CPAN/authors/01mailrc.txt.gz

LWP failed with code[500] message[Can't connect to www.perl.org:80 (Bad hostname 'www.perl.org')]


Trying with "/usr/bin/curl -L -f -s -S --netrc-optional" to get "http://www.perl.org/CPAN/authors/01mailrc.txt.gz" :

curl: (6) Couldn't resolve host 'www.perl.org'

Function system("/usr/bin/curl -L -f -s -S --netrc-optional "http://www.perl.org/CPAN/authors/01mailrc.txt.gz"  > /root/.cpan/source/authors/01mailrc.txt.tmp19575")returned status 6 (wstat 1536)

Warning: expected file [/root/.cpan/source/authors/01mailrc.txt.gz.tmp19575] doesn't exist


Trying with "/usr/bin/wget -O /root/.cpan/source/authors/01mailrc.txt.tmp19575" to get<some URL>

--2012-09-24 17:29:33--  <some URL>

Resolving www.perl.org... failed: Name or service not known.

wget: unable to resolve host address “www.perl.org”

Function system("/usr/bin/wget -O /root/.cpan/source/authors/01mailrc.txt.tmp19575 "some URL ")

returned status 4 (wstat 1024)

Warning: expected file [/root/.cpan/source/authors/01mailrc.txt.gz.tmp19575] doesn't exist

Warning: no success downloading '/root/.cpan/source/authors/01mailrc.txt.gz.tmp19575'. 

Giving up on it. at /usr/share/perl5/CPAN/Index.pm line 225

任何人都可以帮助我吗?

非常感谢!

1 个答案:

答案 0 :(得分:0)

看起来它无法解析主机名,你可以从该机器ping www.google.co.uk吗?

如果问题是你可以临时编辑你的DNS设置,我现在不知道它在Red Hat中是如何工作的,但这是Ubuntu方式:

sudo nano /etc/resolv.conf

添加DNS服务器手册:

#Google nameserver 1:
nameserver 8.8.8.8
#Google nameserver 2:
nameserver 8.8.4.4

保存文件并重新启动网络接口:

sudo /etc/init.d/networking restart
相关问题