2013-06-20 2 views
0

공유 Red Hat Linux 6.2 서버에서 Perl 5.10을 실행하고 있습니다. 나는 다음과 같은 명령을 사용하여, 나를 위해 펄 날짜 시간 모듈을 설치 기계의 루트 사용자를 요청했습니다 :Perl cpan : DateTime, CHECKSUM 다운로드 오류 설치 중 오류

펄 -MCPAN -e 우리는 성공적으로 다른 펄을 설치 할 수 있었다

날짜 시간> 설치 CPAN 쉘 Text :: CSV와 같은 모듈.

그러나 DateTime을 설치하는 동안 다음 오류가 발생했습니다. 다음은 오류 로그의 마지막 비트입니다.

질문 :ftp://ftp.perl.org/pub/CPAN/authors/id/R/RJ/RJBS에서 CHECKSUM 파일을 가져올 수 없다는 오류가 표시 될 수 있습니다. 그러나, 나는 내 인터넷 익스플로러 에서이 정확한 파일을 검색하는 데 문제가 없습니다. 누군가가 해결 방법을 제안 할 수 있습니까? 감사.

Trying with "/usr/bin/wget -O /root/.cpan/sources/authors/id/R/RJ/RJBS/CHECKSUMS.tmp12173" to get 
    "ftp://ftp.perl.org/pub/CPAN/authors/id/R/RJ/RJBS/CHECKSUMS.gz" 
    --2013-06-20 09:30:06-- ftp://ftp.perl.org/pub/CPAN/authors/id/R/RJ/RJBS/CHECKSUMS.gz 
      => b/root/.cpan/sources/authors/id/R/RJ/RJBS/CHECKSUMS.tmp12173b 
Resolving ftp.perl.org... 203.178.137.175, 163.143.1.21 Connecting to ftp.perl.org|203.178.137.175|:21... connected. 
Logging in as anonymous ... Logged in! 
==> SYST ... done. ==> PWD ... done. 
==> TYPE I ... done. ==> CWD (1) /pub/CPAN/authors/id/R/RJ/RJBS ... done. 
==> SIZE CHECKSUMS.gz ... done. 
==> PASV ... done. ==> RETR CHECKSUMS.gz ... 
No such file bCHECKSUMS.gzb. 

Warning: no success downloading '/root/.cpan/sources/authors/id/R/RJ/RJBS/CHECKSUMS.tmp12173'. Giving up on it. at /usr/share/perl5/CPAN/Distribution.pm line 
1311 

As a last resort we now switch to the external ftp command '/usr/kerberos/bin/ftp' 
to get '/root/.cpan/sources/authors/id/R/RJ/RJBS/CHECKSUMS.tmp12173'. 

Doing so often leads to problems that are hard to diagnose. 

If you're the victim of such problems, please consider unsetting the ftp config variable with 

    o conf ftp "" 
    o conf commit 

Issuing "/usr/kerberos/bin/ftp -n" 

    Trying with external ftp to get 
    ftp://ftp.perl.org/pub/CPAN/authors/id/R/RJ/RJBS/CHECKSUMS 
    Going to send the dialog 
    open ftp.perl.org 
    user anonymous Red Hat, [email protected] 
    lcd /root/.cpan/sources/authors/id/R/RJ/RJBS 
    cd/
    cd pub 
    cd CPAN 
    cd authors 
    cd id 
    cd R 
    cd RJ 
    cd RJBS 
    bin 
    get CHECKSUMS CHECKSUMS.tmp12173 
    quit 

Not connected. 
Local directory now /root/.cpan/sources/authors/id/R/RJ/RJBS 
Not connected. 
Not connected. 
Not connected. 
Not connected. 
Not connected. 
Not connected. 
Not connected. 
Not connected. 
Not connected. 
Not connected. 
Bad luck... Still failed! 
Can't access URL ftp://ftp.perl.org/pub/CPAN/authors/id/R/RJ/RJBS/CHECKSUMS. 

Your urllist is empty! The urllist can be edited. E.g. with 'o conf urllist push ftp://myurl/' 

Could not fetch authors/id/R/RJ/RJBS/CHECKSUMS 

갱신 1은 :

우리는 또한 명령을 커밋 오 conf의 FTP ""와 오의 conf을했지만, 우리는 여전히 오류가 발생했습니다.

Trying with "/usr/bin/wget -O /root/.cpan/sources/authors/id/R/RJ/RJBS/CHECKSUMS.tmp16529" to get 
    "http://www.perl.org/CPAN/authors/id/R/RJ/RJBS/CHECKSUMS.gz" 
    --2013-06-20 13:52:07-- http://www.perl.org/CPAN/authors/id/R/RJ/RJBS/CHECKSUMS.gz 
Resolving www.perl.org... 207.171.7.41, 207.171.7.51 Connecting to www.perl.org|207.171.7.41|:80... failed: Connection refused. 
Connecting to www.perl.org|207.171.7.51|:80... failed: Connection refused. 
Warning: no success downloading '/root/.cpan/sources/authors/id/R/RJ/RJBS/CHECKSUMS.tmp16529'. Giving up on it. at /usr/share/perl5/CPAN/Distribution.pm line 
1311 
Fetching with LWP: 
    ftp://ftp.perl.org/pub/CPAN/authors/id/R/RJ/RJBS/CHECKSUMS 
Checksum for /root/.cpan/sources/authors/id/R/RJ/RJBS/Test-Fatal-0.010.tar.gz ok Test-Fatal-0.010 Test-Fatal-0.010/README Test-Fatal-0.010/Changes Test-Fatal-0.010/LICENSE Test-Fatal-0.010/dist.ini Test-Fatal-0.010/META.yml Test-Fatal-0.010/MANIFEST Test-Fatal-0.010/t Test-Fatal-0.010/t/basic.t Test-Fatal-0.010/META.json Test-Fatal-0.010/Makefile.PL Test-Fatal-0.010/lib/Test Test-Fatal-0.010/lib/Test/Fatal.pm 
Test-Fatal-0.010/t/like-exception.t 
Test-Fatal-0.010/t/release-pod-syntax.t 

    CPAN.pm: Going to build R/RJ/RJBS/Test-Fatal-0.010.tar.gz 

Checking if your kit is complete... 
Looks good 
Warning: prerequisite Try::Tiny 0.07 not found. 
Writing Makefile for Test::Fatal 
Could not read '/root/.cpan/build/Test-Fatal-0.010-GNYnPy/META.yml'. Falling back to other methods to determine prerequisites 
---- Unsatisfied dependencies detected during ---- 
----  RJBS/Test-Fatal-0.010.tar.gz  ---- 
    Try::Tiny [requires] 
Shall I follow them and prepend them to the queue of modules we are processing right now? [yes] Running make test 
    Delayed until after prerequisites 
Running make install 
    Delayed until after prerequisites 
Running install for module 'Try::Tiny' 
'YAML' not installed, falling back to Data::Dumper and Storable to read prefs '/root/.cpan/prefs' 
Running make for D/DO/DOY/Try-Tiny-0.12.tar.gz Fetching with LWP: 
    http://www.perl.org/CPAN/authors/id/D/DO/DOY/Try-Tiny-0.12.tar.gz 
LWP failed with code[500] message[Can't connect to www.perl.org:80 (connect: Connection refused)] Fetching with LWP: 
    ftp://ftp.perl.org/pub/CPAN/authors/id/D/DO/DOY/Try-Tiny-0.12.tar.gz 
LWP failed with code[500] message[] 
Fetching with Net::FTP: 
    ftp://ftp.perl.org/pub/CPAN/authors/id/D/DO/DOY/Try-Tiny-0.12.tar.gz 
Catching error: "Timeout at /usr/share/perl5/Net/FTP.pm line 491\cJ" at /usr/share/perl5/CPAN.pm line 391 
     CPAN::shell() called at -e line 1 
+0

"연결이 거부되었습니다." 당신은 아마 프록시 뒤에 있습니까? – ikegami

답변

1

당신이 제안한대로 했습니까?

If you're the victim of such problems, please consider unsetting the ftp config variable with 

o conf ftp "" 
o conf commit 

또는,

perl Build.PL 
./Build install 

또는

perl Makefile.PL 
make install 

따라 할 디렉토리 에 CPAN 사이트 압축을 그것의 CD에서 GZ 파일로 모듈을 다운로드 할 수 있습니다. 당신이 다른 곳에 당신의 모듈을 설치 행복 경우

이 모든 것을 CPAN 당신이 모든 패키지 또는 모듈 우연히

누락하는 경우 볼 수 있도록 할 일을 할 것입니다, 당신은 루트가 될 필요가 없습니다. 이것을 달성하기위한 예제가 많이 있습니다.

+0

또 다른 대안으로 rpm을 사용하여 모듈을 설치할 수 있습니다. 데비안에서 무료로 업데이트를 얻었고 OS로 테스트 한 버전으로 데비안을 성공적으로 사용했습니다. – KeepCalmAndCarryOn

+0

감사합니다. DateTime을 설치하려고했지만 다른 의존성도있었습니다. 그래서 우리가 희망하는 이유입니다. CPAN 경로로 모든 것을 끌어 내려고. o conf ftp를 시도하고 "conf"를 실행했는데 여전히 오류가 발생했습니다. 방금 동료와 이야기 한 후에 Linux 서버가 Windows 시스템과 다른 네트워크 액세스 정책을 가질 수 있다는 것을 알았습니다. CPAN 웹 사이트의 FAQ를 탐색 중이며 네트워킹이 보이지 않습니다. – frank

+0

컬을 사용하여 루트에서 파일을 가져올 수 있습니다. – KeepCalmAndCarryOn