CPAN-Forum - cpan.pm through proxy authentication: help me

Posted on Thu Aug 9 09:31:29 2007 by chandru1782
cpan.pm through proxy authentication: help me
i have to connect to internet using a proxy server that has authentication. I am trying to install KOHA. While installing CPAN.pm it says it cannot connect http or ftp server to get the MIRRORED.BY . what can i do to resolve the problem. some one please help me. the following error comes in my system You have no /root/.cpan/sources/MIRRORED.BY I'm trying to fetch one CPAN: LWP::UserAgent loaded ok Fetching with LWP: http://cpan.enstimac.fr/MIRRORED.BY/MIRRORED.BY Fetching with LWP: http://cpan.enstimac.fr/MIRRORED.BY/MIRRORED.BY.gz Fetching with LWP: ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY/MIRRORED.BY Fetching with LWP: ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY/MIRRORED.BY.gz Fetching with Net::FTP: ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY/MIRRORED.BY Fetching with Net::FTP ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY/MIRRORED.BY.gz Trying with "/usr/bin/lynx -source" to get http://cpan.enstimac.fr/MIRRORED.BY/MIRRORED.BY Looking up proxy.iitm.ac.in:3128 Making HTTP connection to proxy.iitm.ac.in:3128 Sending HTTP request. HTTP request sent; waiting for response. Alert!: Can't retry with proxy authorization! Contact the server's WebMaster. Can't Access `http://cpan.enstimac.fr/MIRRORED.BY/MIRRORED.BY' Alert!: Unable to access document. lynx: Can't access startfile Trying with "/usr/bin/lynx -source" to get http://cpan.enstimac.fr/MIRRORED.BY/MIRRORED.BY.gz Looking up proxy.iitm.ac.in:3128 Making HTTP connection to proxy.iitm.ac.in:3128 Sending HTTP request. HTTP request sent; waiting for response. Alert!: Can't retry with proxy authorization! Contact the server's WebMaster. Can't Access `http://cpan.enstimac.fr/MIRRORED.BY/MIRRORED.BY.gz' Alert!: Unable to access document. lynx: Can't access startfile Trying with "/usr/bin/ncftpget" to get http://cpan.enstimac.fr/MIRRORED.BY/MIRRORED.BY NcFTPGet 3.2.0 Usages: ncftpget [flags] remote-host local-dir remote-path-names... (mode 1) ncftpget -f login.cfg [flags] local-dir remote-path-names... (mode 2) ncftpget [flags] ftp://url.style.host/path/name (mode 3) ncftpget -c [flags] remote-host remote-path-name
>
stdout (mode 4) ncftpget -C [flags] remote-host remote-path-name local-path-name (mode 5) ncftpget -c [flags] ftp://url.style.host/path/name
>
stdout (mode 6) 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). -d XX Use the file XX for debug logging. -a Use ASCII transfer type instead of binary. -t XX Timeout after XX seconds. -v/-V Do (do not) use progress meters. -f XX Read the file XX for host, user, and password information. -h XX Connect to host XX. Useful for overriding host in -f config.file. -c Read from remote host and write locally to stdout. -C Read from remote host and write locally to specified file. -A Append to local files, instead of overwriting them. -z/-Z Do (do not) try to resume downloads (default: -z). -E Use regular (PORT) data connections. -F Use passive (PASV) data connections (default). -DD Delete remote file after successfully downloading it. -b Run in background (submit job to "ncftpbatch" and run). -bb Same as "-b" but queue only (do not run "ncftpbatch"). -B XX Try setting the SO_RCVBUF size to XX. -r XX Redial XX times until connected. -o XX Specify miscellaneous options (see documentation). -W XX Send raw FTP command XX after logging in. -X XX Send raw FTP command XX after each file transferred. -Y XX Send raw FTP command XX before logging out. -R Recursive mode; copy whole directory trees. -T Do not try to use TAR mode with Recursive mode. Examples: ncftpget ftp.freebsd.org . /pub/FreeBSD/README.TXT /pub/FreeBSD/index.html ncftpget ftp.gnu.org /tmp '/pub/gnu/README.*' ncftpget ftp://ftp.freebsd.org/pub/FreeBSD/README.TXT ncftpget -R ftp.ncftp.com /tmp /ncftp (ncftp is a directory) ncftpget -u gleason -p my.password Bozo.probe.net . '/home/mjg/.*rc' ncftpget -u gleason Bozo.probe.net . /home/mjg/foo.txt (prompt for password) ncftpget -f Bozo.cfg '/home/mjg/.*rc' ncftpget -c ftp.freebsd.org /pub/FreeBSD/README.TXT | /usr/bin/more ncftpget -c ftp://ftp.freebsd.org/pub/FreeBSD/README.TXT | /usr/bin/more ncftpget -a -d /tmp/debug.log -t 60 ftp.wustl.edu . '/pub/README*' Library version: LibNcFTP 3.2.0 (August 5, 2006). This is a freeware program by Mike Gleason (http://www.ncftp.com). This was built using LibNcFTP (http://www.ncftp.com/libncftp/). Trying with "/usr/bin/ncftpget" to get http://cpan.enstimac.fr/MIRRORED.BY/MIRRORED.BY.gz Trying with "/usr/bin/wget -O -" to get http://cpan.enstimac.fr/MIRRORED.BY/MIRRORED.BY --12:06:58-- http://cpan.enstimac.fr/MIRRORED.BY/MIRRORED.BY =
>
`-' Resolving proxy.iitm.ac.in... 10.93.0.31, 10.93.0.32 Connecting to proxy.iitm.ac.in|10.93.0.31|:3128... connected. Proxy request sent, awaiting response... 407 Proxy Authentication Required 12:06:58 ERROR 407: Proxy Authentication Required. Trying with "/usr/bin/wget -O -" to get http://cpan.enstimac.fr/MIRRORED.BY/MIRRORED.BY.gz --12:06:58-- http://cpan.enstimac.fr/MIRRORED.BY/MIRRORED.BY.gz =
>
`-' Resolving proxy.iitm.ac.in... 10.93.0.32, 10.93.0.31 Connecting to proxy.iitm.ac.in|10.93.0.32|:3128... connected. Proxy request sent, awaiting response... 407 Proxy Authentication Required 12:06:58 ERROR 407: Proxy Authentication Required. Trying with "/usr/bin/lynx -source" to get ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY/MIRRORED.BY Looking up proxy.iitm.ac.in:3128ftp: Unable to locate remote host proxy.iitm.ac.in:3128ftp:. Alert!: Unable to connect to FTP host. Looking up proxy.iitm.ac.in:3128ftp: Unable to locate remote host proxy.iitm.ac.in:3128ftp:. Alert!: Unable to connect to FTP host. lynx: Can't access startfile ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY/MIRRORED.BY Trying with "/usr/bin/lynx -source" to get ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY/MIRRORED.BY.gz Looking up proxy.iitm.ac.in:3128ftp: Unable to locate remote host proxy.iitm.ac.in:3128ftp:. Alert!: Unable to connect to FTP host. Looking up proxy.iitm.ac.in:3128ftp: Unable to locate remote host proxy.iitm.ac.in:3128ftp:. Alert!: Unable to connect to FTP host. lynx: Can't access startfile ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY/MIRRORED.BY.gz Trying with "/usr/bin/ncftpget" to get ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY/MIRRORED.BY Could not connect to ftp.perl.org -- try again later: Connection timed out. Could not connect to ftp.perl.org -- try again later: Connection timed out. Could not connect to ftp.perl.org -- try again later: Connection timed out. ncftpget: cannot open ftp.perl.org: could not connect to remote host, but can try again. Trying with "/usr/bin/ncftpget" to get ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY/MIRRORED.BY.gz Could not connect to ftp.perl.org -- try again later: Connection timed out. Could not connect to ftp.perl.org -- try again later: Connection timed out. Could not connect to ftp.perl.org -- try again later: Connection timed out. ncftpget: cannot open ftp.perl.org: could not connect to remote host, but can try again. Trying with "/usr/bin/wget -O -" to get ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY/MIRRORED.BY --12:12:32-- ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY/MIRRORED.BY =
>
`-' Resolving proxy.iitm.ac.in... 10.93.0.31, 10.93.0.32 Connecting to proxy.iitm.ac.in|10.93.0.31|:3128... connected. Logging in as anonymous ...
Write a response