LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-22-2010, 04:11 AM   #1
zaeem
Member
 
Registered: Jan 2010
Posts: 118

Rep: Reputation: 15
Can't locate CPAN.pm in @INC


Dear All,

I am executing command "yum install perl-CPAN". I got the following error "Can't locate CPAN.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 .).". Let me give you some details of the problem.

OS: CentOS release 5.4 (Final)
Architecture: : 32 Bit
Installed Perl Version: This is perl, v5.8.8 built for i386-linux-thread-multi

I've also studies previous posts on this topic which says "yum install perl-CPAN" will fix the problem when I execute this command I got "No package perl-CPAN available".

Kindly suggest a fix to this problem.

Regards,
Sherazi
 
Old 02-22-2010, 04:15 AM   #2
ashok.g
Member
 
Registered: Dec 2009
Location: Hyderabad,India
Distribution: RHEl AS 4
Posts: 215

Rep: Reputation: 32
You can get it from :
http://search.cpan.org/~andk/CPAN-1.9402/lib/CPAN.pm
as well. It contains a link to dowload a tar file of CPAN.

HTH
 
Old 02-22-2010, 04:27 AM   #3
zaeem
Member
 
Registered: Jan 2010
Posts: 118

Original Poster
Rep: Reputation: 15
Dear Ashok,

Thanks a lot for your quick reply. I've downloaded CPAN-1.9402.tar.gz but I don't know exact commands to install. I want to install following modules. So please assist me in this regard.

cpan> install Bundle::CPAN
cpan> install Authen::Radius
cpan[1]> force install DBD::mysql
cpan[1]>force install Bundle:BI
cpan[1]>install Mail::Sendmail
cpan[1]> install Asterisk::AGI


Regards,
Shirazi
 
Old 02-22-2010, 04:44 AM   #4
ashok.g
Member
 
Registered: Dec 2009
Location: Hyderabad,India
Distribution: RHEl AS 4
Posts: 215

Rep: Reputation: 32
after getting cpan> prompt as you got there type h or ? or help to know all what you can do with that cpan as:
Code:
cpan> help

Display Information
 command  argument          description
 a,b,d,m  WORD or /REGEXP/  about authors, bundles, distributions, modules
 i        WORD or /REGEXP/  about anything of above
 r        NONE              reinstall recommendations
 ls       AUTHOR            about files in the author's directory

Download, Test, Make, Install...
 get                        download
 make                       make (implies get)
 test      MODULES,         make test (implies make)
 install   DISTS, BUNDLES   make install (implies test)
 clean                      make clean
 look                       open subshell in these dists' directories
 readme                     display these dists' README files

Other
 h,?           display this menu       ! perl-code   eval a perl command
 o conf [opt]  set and query options   q             quit the cpan shell
 reload cpan   load CPAN.pm again      reload index  load newer indices
 autobundle    Snapshot                force cmd     unconditionally do cmd
cpan>
Now I think you can do whatever you want with CPAN now.
 
Old 02-22-2010, 05:17 AM   #5
vishesh
Member
 
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 661

Rep: Reputation: 66
What if you install all Perl related packages

yum install perl*

thnks
 
Old 02-22-2010, 03:19 PM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
1) There is no package by name ' perl-CPAN '.

2) CPAN.pm : /usr/lib/perl5/5.8.8/CPAN.pm
.. is from the package perl-5.8.8-18.el5

You may just have to reinstall ' perl '.
.....
 
  


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
[SOLVED] Can't locate CPAN.pm in @INC unkie888 Programming 3 05-17-2015 01:24 PM
f7, perl and CPAN hohum Fedora 1 08-01-2007 05:31 AM
cpan help unixshell101 Linux - Software 5 07-06-2007 11:45 PM
cpan> locate -u Unknown shell command 'locate -u'. Type ? for help. sharad2005 Linux From Scratch 1 08-04-2006 01:40 AM
How to Reconfigure CPAN amer_58 Linux - Newbie 1 04-19-2005 06:47 AM


All times are GMT -5. The time now is 06:33 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration