Making the cpan shell to use http mirrors instead of ftp

In some network ftp port is blocked.This prevents the installation on cpan modules as cpan uses ftp mirrors by default.
This Procedure makes the perl shell to use http mirrors for installation of perl modules.
***************************************************************************************************************************************************
Go to perl cpamn shell:

#perl -MCPAN -e shell

Get the list of the current urls that cpan shell uses to get modules.

cpan> o conf urllist
urllist
0 [ftp://cpan.modperl.cn/]

Type 'o conf' to view all configuration items


Add http url, url list is available @http://www.cpan.org/SITES.html.

cpan> o conf urllist push http://cpan.modperl.cn

Check if the new URL is added:

cpan> o conf urllist

Save the changes:

cpan> o conf commit

cpan> exit

***************************************************************************************************************************************************
Now enjoy installing perl modules :D

Comments

Sameer Nafdey said…
Thanks a lot, you saved my time. I also did learned using

o conf urllist pop

to remove default ftp mirrors which were creating problems.

Popular posts from this blog

configure Netbackup email notification on Unix