Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 02-22-2010, 04:11 AM   #1
Registered: Jan 2010
Posts: 125

Rep: Reputation: 15
Can't locate in @INC

Dear All,

I am executing command "yum install perl-CPAN". I got the following error "Can't locate 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.

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

Rep: Reputation: 32
You can get it from :
as well. It contains a link to dowload a tar file of CPAN.

Old 02-22-2010, 04:27 AM   #3
Registered: Jan 2010
Posts: 125

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

Old 02-22-2010, 04:44 AM   #4
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:
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

 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 again      reload index  load newer indices
 autobundle    Snapshot                force cmd     unconditionally do cmd
Now I think you can do whatever you want with CPAN now.
Old 02-22-2010, 05:17 AM   #5
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 661

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

yum install perl*

Old 02-22-2010, 03:19 PM   #6
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2021 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,440

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

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

You may just have to reinstall ' perl '.


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 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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:44 AM.

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