LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 05-14-2008, 11:29 AM   #1
knockout_artist
Member
 
Registered: Sep 2005
Distribution: fedora core 9
Posts: 324

Rep: Reputation: 33
Perl installation issues mod /cpan issues


Good Day,

Can some please look at this problem.



Code:
DBI.pm exists and is found in /usr/lib/perl5/vendor_perl/5.8.8/s390x-linux-thread-multi/DBI.pm
DB2.pm does not exist.

but when you try to access it you get

Can't locate DBI/DB2.pm in @INC (@INC contains: /usr/lib/perl5/5.8.8/s390x-linux-thread-multi /usr/lib/perl5/5.8.8 /usr/lib/perl5/site_perl/5.8.8/s390x-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/s390x-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl .) at ./perlinfo line 10.
BEGIN failed--compilation aborted at ./perlinfo line 10.
Get same thing if I try to run mcpan

Code:
kennesaw-cm-prestage:/usr/lib/perl5 # perl -mcpan -e shell

Can't locate cpan.pm in @INC (@INC contains: /usr/lib/perl5/5.8.8/s390x-linux-thread-multi /usr/lib/perl5/5.8.8 /usr/lib/perl5/site_perl/5.8.8/s390x-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/s390x-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl .).
BEGIN failed--compilation aborted.
But CPAN.pm exists in /usr/lib/perl5/5.8.8/CPAN.pm


Thanks.
 
Old 05-14-2008, 01:01 PM   #2
dthacker
Member
 
Registered: Nov 2003
Location: Omaha, NE
Distribution: Ubuntu, Kubuntu, Ubuntu Server
Posts: 77

Rep: Reputation: 15
You need to set the environment variable PERL5LIB to include the directories you are trying to access.

dthacker
 
Old 05-14-2008, 07:55 PM   #3
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.6, Centos 5.10
Posts: 16,324

Rep: Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041
Linux is case sensitive(!), login as root and do
perl -e shell -MCPAN
 
  


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
Issues with a kernel mod (UINPUT) monkiidansu Linux - Software 2 08-12-2007 03:16 PM
Xmms-Perl installation issues Trancemission Linux - Software 2 03-19-2007 01:01 AM
RHEL4u2 perl localtime() call issues (perl & glibc) Brad.Scalio@noaa.gov Linux - Enterprise 3 01-23-2007 10:27 PM
CPAN make issues. No modules will install Brnzwngs Programming 3 07-26-2006 10:10 PM
[Perl] cpan installation problem noir911 Programming 1 03-23-2006 01:07 AM


All times are GMT -5. The time now is 11:49 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration