Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > CPAN problem

Reply
Thread Tools

CPAN problem

 
 
p cooper
Guest
Posts: n/a
 
      09-07-2003
router root # perl -MCPAN -e 'install Net::SMTP'
CPAN: Storable loaded ok
LWP not available
CPAN: Net::FTP loaded ok
Fetching with Net::FTP:
ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz
Couldn't fetch 01mailrc.txt.gz from ftp.perl.org

Trying with "/usr/bin/lynx -source" to get
ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz

Looking up ftp.perl.org
Making FTP connection to ftp.perl.org
Can't Access `ftp://ftp.perl.org/pub/CPAN/authors/01mailr
c.txt.gz'
Alert!: Unable to access document.

lynx: Can't access startfile

System call "/usr/bin/lynx -source "ftp://ftp.perl.org/pu
b/CPAN/authors/01mailrc.txt.gz" > /root/.cpan/sources/au
thors/01mailrc.txt"
returned status 1 (wstat 256)
Warning: expected file [/root/.cpan/sources/authors/01mai
lrc.txt.gz] doesn't exist

Trying with "/usr/bin/wget -O -" to get
ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz
--19:17:06-- ftp://ftp.perl.org/pub/CPAN/authors/01mailr
c.txt.gz
=> `-'
Resolving ftp.perl.org... done.
Connecting to ftp.perl.org[192.35.244.50]:21... connected
..
Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD /pub/CPAN/authors ... done.
==> PORT ... done. ==> RETR 01mailrc.txt.gz ...
Error in server response, closing control connection.
Retrying.

--19:18:10-- ftp://ftp.perl.org/pub/CPAN/authors/01mailr
c.txt.gz
(try: 2) => `-'
Connecting to ftp.perl.org[192.35.244.50]:21... connected
..
Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD /pub/CPAN/authors ... done.
==> PORT ... done. ==> RETR 01mailrc.txt.gz ...
Error in server response, closing control connection.
Retrying.

and 20- further tries

Not sure where to start sorting it out
IIRC ive installed other stuff with CPAN with no problem

 
Reply With Quote
 
 
 
 
user@internet.com
Guest
Posts: n/a
 
      09-08-2003
p cooper wrote:

> router root # perl -MCPAN -e 'install Net::SMTP'
> CPAN: Storable loaded ok
> LWP not available
> CPAN: Net::FTP loaded ok
> Fetching with Net::FTP:
> ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz
> Couldn't fetch 01mailrc.txt.gz from ftp.perl.org
>
> Trying with "/usr/bin/lynx -source" to get
> ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz
>
> Looking up ftp.perl.org
> Making FTP connection to ftp.perl.org
> Can't Access `ftp://ftp.perl.org/pub/CPAN/authors/01mailr
> c.txt.gz'
> Alert!: Unable to access document.
>
> lynx: Can't access startfile
>
> System call "/usr/bin/lynx -source "ftp://ftp.perl.org/pu
> b/CPAN/authors/01mailrc.txt.gz" > /root/.cpan/sources/au
> thors/01mailrc.txt"
> returned status 1 (wstat 256)
> Warning: expected file [/root/.cpan/sources/authors/01mai
> lrc.txt.gz] doesn't exist
>
> Trying with "/usr/bin/wget -O -" to get
> ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz
> --19:17:06-- ftp://ftp.perl.org/pub/CPAN/authors/01mailr
> c.txt.gz
> => `-'
> Resolving ftp.perl.org... done.
> Connecting to ftp.perl.org[192.35.244.50]:21... connected
> .
> Logging in as anonymous ... Logged in!
> ==> SYST ... done. ==> PWD ... done.
> ==> TYPE I ... done. ==> CWD /pub/CPAN/authors ... done.
> ==> PORT ... done. ==> RETR 01mailrc.txt.gz ...
> Error in server response, closing control connection.
> Retrying.
>
> --19:18:10-- ftp://ftp.perl.org/pub/CPAN/authors/01mailr
> c.txt.gz
> (try: 2) => `-'
> Connecting to ftp.perl.org[192.35.244.50]:21... connected
> .
> Logging in as anonymous ... Logged in!
> ==> SYST ... done. ==> PWD ... done.
> ==> TYPE I ... done. ==> CWD /pub/CPAN/authors ... done.
> ==> PORT ... done. ==> RETR 01mailrc.txt.gz ...
> Error in server response, closing control connection.
> Retrying.
>
> and 20- further tries
>
> Not sure where to start sorting it out
> IIRC ive installed other stuff with CPAN with no problem


Hi Peter,

Try setting the following environment variable

export FTP_PASV=1

I found this problem when I was behind a firewall and this set all FTP
to passive and worked with no problems. I have CPAN running without any
issue

Regards
David Logan
HP Managed Services
Adelaide South Australia

 
Reply With Quote
 
 
 
 
p cooper
Guest
Posts: n/a
 
      09-08-2003
still not working (


router root # export FTP_PASV=1
router root # perl -MCPAN -e 'install Net::SMTP'
CPAN: Storable loaded ok
Going to read /root/.cpan/Metadata
Warning: Found only 0 objects in /root/.cpan/Metadata
LWP not available
CPAN: Net::FTP loaded ok
Fetching with Net::FTP:
ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz
Couldn't fetch 01mailrc.txt.gz from ftp.perl.org

Trying with "/usr/bin/lynx -source" to get
ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz

Looking up ftp.perl.org
Making FTP connection to ftp.perl.org
Can't Access `ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz'
Alert!: Unable to access document.

lynx: Can't access startfile

System call "/usr/bin/lynx -source
"ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz" >
/root/.cpan/sources/authors/01mailrc.txt"
returned status 1 (wstat 256)
Warning: expected file [/root/.cpan/sources/authors/01mailrc.txt.gz] doesn't
exist

Trying with "/usr/bin/wget -O -" to get
ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz
--18:03:44-- ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz
=> `-'
Resolving ftp.perl.org... done.
Connecting to ftp.perl.org[194.125.133.8]:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD /pub/CPAN/authors ... done.
==> PORT ... done. ==> RETR 01mailrc.txt.gz ...
Error in server response, closing control connection.
Retrying.

--18:05:01-- ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz
(try: 2) => `-'
Connecting to ftp.perl.org[194.125.133.8]:21... connected.


 
Reply With Quote
 
David Logan
Guest
Posts: n/a
 
      09-09-2003
p cooper wrote:

> still not working (
>
> router root # export FTP_PASV=1
> router root # perl -MCPAN -e 'install Net::SMTP'
> CPAN: Storable loaded ok
> Going to read /root/.cpan/Metadata
> Warning: Found only 0 objects in /root/.cpan/Metadata
> LWP not available
> CPAN: Net::FTP loaded ok
> Fetching with Net::FTP:
> ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz
> Couldn't fetch 01mailrc.txt.gz from ftp.perl.org
>
> Trying with "/usr/bin/lynx -source" to get
> ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz
>
> Looking up ftp.perl.org
> Making FTP connection to ftp.perl.org
> Can't Access `ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz'
> Alert!: Unable to access document.
>
> lynx: Can't access startfile
>
> System call "/usr/bin/lynx -source
> "ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz" >
> /root/.cpan/sources/authors/01mailrc.txt"
> returned status 1 (wstat 256)
> Warning: expected file [/root/.cpan/sources/authors/01mailrc.txt.gz] doesn't
> exist
>
> Trying with "/usr/bin/wget -O -" to get
> ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz
> --18:03:44-- ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz
> => `-'
> Resolving ftp.perl.org... done.
> Connecting to ftp.perl.org[194.125.133.8]:21... connected.
> Logging in as anonymous ... Logged in!
> ==> SYST ... done. ==> PWD ... done.
> ==> TYPE I ... done. ==> CWD /pub/CPAN/authors ... done.
> ==> PORT ... done. ==> RETR 01mailrc.txt.gz ...
> Error in server response, closing control connection.
> Retrying.
>
> --18:05:01-- ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz
> (try: 2) => `-'
> Connecting to ftp.perl.org[194.125.133.8]:21... connected.


Woops, sorry it was FTP_PASSIVE=1

8-(

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
FAQ 2.6 What modules and extensions are available for Perl? What is CPAN? What does CPAN/src/... mean? PerlFAQ Server Perl Misc 0 01-24-2011 11:00 PM
on windows 7 / cygwin / perl / cpan - cannot make cpan work SVCitian Perl Misc 1 10-22-2010 03:59 PM
rt.cpan.org, search.cpan.org: why so unuseable? Ben Bullock Perl Misc 12 07-08-2008 12:51 PM
Is there a better way to search CPAN than search.cpan.org? usenet@DavidFilmer.com Perl Misc 5 10-12-2005 04:50 AM
Upgrading to CPAN.pm v1.76 install Bundle::CPAN fails carl d. Perl Misc 1 05-10-2005 09:35 PM



Advertisments