LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 05-16-2008, 05:47 AM   #1
jindalarpan
Member
 
Registered: Mar 2006
Posts: 94

Rep: Reputation: 15
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
 
Old 05-16-2008, 06:49 AM   #2
cooljai
Member
 
Registered: May 2007
Location: /dev/random
Distribution: CentOS, Fedora, RHEL, SuSE
Posts: 62

Rep: Reputation: 15
might be a mirror site issue. change mirros/options for cpan and try again
 
Old 05-16-2008, 07:26 AM   #3
jindalarpan
Member
 
Registered: Mar 2006
Posts: 94

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by cooljai View Post
might be a mirror site issue. change mirros/options for cpan and try again
how can i change that ?
 
Old 05-16-2008, 07:34 AM   #4
jindalarpan
Member
 
Registered: Mar 2006
Posts: 94

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by jindalarpan View Post
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
 
Old 05-16-2008, 11:53 PM   #5
cooljai
Member
 
Registered: May 2007
Location: /dev/random
Distribution: CentOS, Fedora, RHEL, SuSE
Posts: 62

Rep: Reputation: 15
Quote:
Originally Posted by jindalarpan View Post
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.).

Last edited by cooljai; 05-16-2008 at 11:55 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Perl datescript Issue, missing perl module? stefaandk Programming 5 02-19-2006 10:55 PM
Perl modules installation problem on fc4 kartheekpn Linux - Software 0 08-09-2005 02:44 AM
Conf.modules Vs Modules.conf Issue, lost eth0 initialization LinuxFreebie41 Linux - General 3 11-04-2004 06:02 AM
perl modules mairul Linux - Newbie 13 03-08-2004 09:41 PM
perl modules kidwired Linux - Software 6 01-02-2003 03:24 PM


All times are GMT -5. The time now is 01:27 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration