> Geraint Jones [[EMAIL PROTECTED]] quoth:
> *>
> *>I've read the docs and have tried to set-up CPAN to no avail. I'm a bit
> of a *>Linux newbie so any help with setting ncftp or any other ftp program
> used by *>CPAN would be very much appreciated.
>
> Can you define how it doesn't work or what you have managed to configure
> thus far?

I am having difficulty with all the ftp programs that CPAN tries to use.

We have a generic proxy server where I work that requires a username and 
password to access the internet over a certain port number.

When I try to install anything it goes through some of the ftp programs 
specified in the preferences and fails with every one. It's got to be because 
of some settings or preferences somewhere, but I don't know enough to figure 
it out.

The following is the output I get:

-- Start
cpan> install Bundle::libnet
                                                                              
                               Please, install Net::FTP as soon as possible. 
CPAN.pm installs it for you
  if you just type
      install Bundle::libnet


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

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'  > 
/home/geraint/.cpan/sources/authors/01mailrc.txt"
returned status 255 (wstat 65280)
Warning: expected file [/home/geraint/.cpan/sources/authors/01mailrc.txt.gz] 
doesn't exist

Trying with "/usr/local/bin/ncftpget" to get
    ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz
Invalid reply: "HTTP/1.0 408 Request Time-out"
ncftpget: cannot open ftp.perl.org: invalid reply from server.

System call "cd /home/geraint/.cpan/sources/authors && 
/usr/local/bin/ncftpget 'ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz' 
"
returned status 1 (wstat 256)
Warning: expected file [/home/geraint/.cpan/sources/authors/01mailrc.txt.gz] 
doesn't exist

Trying with "/usr/local/bin/ncftp -c" to get
    ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz
/usr/local/bin/ncftp: illegal option -- c

Usage:  ncftp [flags] [<host> | <directory URL to browse>]

Flags:
  -u XX  Use username XX instead of anonymous.
  -p XX  Use password XX with the username.
  -P XX  Use port number XX instead of the default FTP service port (21).
  -j XX  Use account XX with the username (rarely needed).
  -F     Dump a sample $HOME/.ncftp/firewall prefs file to stdout and exit.

Program version:  NcFTP 3.0.3/635 April 15 2001, 05:49 PM
Library version:  LibNcFTP 3.0.6 (April 14, 2001)
System:           Linux GruffyddapCynan 2.2.16 #1 Wed Aug 2 20:22:26 GMT 20...

This is a freeware program by Mike Gleason ([EMAIL PROTECTED]).
Use ncftpget and ncftpput for command-line FTP.


System call "/usr/local/bin/ncftp -c 
'ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz'  > 
/home/geraint/.cpan/sources/authors/01mailrc.txt"
returned status 2 (wstat 512)
Warning: expected file [/home/geraint/.cpan/sources/authors/01mailrc.txt.gz] 
doesn't exist
Issuing "/usr/bin/ftp -n"
ftp: connect: No route to host
Not connected.
Local directory now /home/geraint/.cpan/sources/authors
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/01mailrc.txt.gz.

Please check, if the URLs I found in your configuration file
(ftp://ftp.perl.org/pub/CPAN/) are valid. The urllist can be edited. E.g.
with 'o conf urllist push ftp://myurl/'

Could not fetch authors/01mailrc.txt.gz


Warning: Cannot install Bundle::libnet, don't know what it is.
Try the command
 
    i /Bundle::libnet/
 
to find objects with matching identifiers.
-- End

This output is repeated for every part of the bundle.

I've checked and ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz does 
exist, my browser can find it.

Thanks for any help you can give me, it's been giving me a headache for a 
while now.

Geraint.

Reply via email to