LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   perl cpam modules installation issue (https://www.linuxquestions.org/questions/linux-server-73/perl-cpam-modules-installation-issue-642602/)

jindalarpan 05-16-2008 05:47 AM

perl cpam modules installation issue
 
hi
i m trying to install follwonmg modules of perl

/usr/bin/perl -MCPAN -e 'install "Email::Send"'
/usr/bin/perl -MCPAN -e 'install "Template"'
/usr/bin/perl -MCPAN -e 'install "Email::MIME::Modifier"'
/usr/bin/perl -MCPAN -e 'install "Date::Format"'

but when i am trying to install any of these i am getting error message as

Can't access URL ftp://ftp.perl.org/pub/CPAN/MIRRORED...e-2.003.tar.gz.

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

Could not fetch authors/id/R/RJ/RJBS/Email-Simple-2.003.tar.gz
Giving up on '/root/.cpan/sources/authors/id/R/RJ/RJBS/Email-Simple-2.003.tar.gz'
Note: Current database in memory was generated on Fri, 16 May 2008 02:29:47 GMT

but i am able to connect to internet using this machine. where could be the issue?

thanks

cooljai 05-16-2008 06:49 AM

might be a mirror site issue. change mirros/options for cpan and try again

jindalarpan 05-16-2008 07:26 AM

Quote:

Originally Posted by cooljai (Post 3155123)
might be a mirror site issue. change mirros/options for cpan and try again

how can i change that ?

jindalarpan 05-16-2008 07:34 AM

Quote:

Originally Posted by jindalarpan (Post 3155147)
how can i change that ?

i have added new links by doing this but still its goignt o the same old one.

# cpan
Terminal does not support AddHistory.

cpan> o conf urlist push http://www.cpan.org

cpan> o conf urlist push http://www.cpan.org

cpan> o conf urlist push ftp://ftp.perl.org

cpan> exit
Terminal does not support GetHistory.
Lockfile removed.

thanks

cooljai 05-16-2008 11:53 PM

Quote:

Originally Posted by jindalarpan (Post 3155159)
i have added new links by doing this but still its goignt o the same old one.

you can try to completely reconfigure cpan
1) delete ur cpan config/history. for example, if you are working as root, then delete /root/.cpan directory.
2) delete global cpan config file, if you are using perl 5.8.8 then you can remove /usr/lib/perl5/5.8.8/CPAN/Config.pm file (RHEL, CentOS, Fedora )

try to use cpan now
Code:

# perl -MCPAN -e shell
it should ask for manual configurations which you can customize (select different mirros etc.).


All times are GMT -5. The time now is 08:15 PM.