Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > Your Distro > Redhat / Fedora Linux Help > perl libs pointing to wrong directory

Forgot Password?
 Redhat / Fedora Linux Help   Help and discussion related to Redhat and Fedora Linux.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 09-28-2007   #1 (permalink)
Just Joined!
 
Join Date: Sep 2007
Posts: 1
perl libs pointing to wrong directory

Dear Forum,

I'm running fedora and removed perl because of a library problem.
I've downloaded perl source code, compiled it, installed a few extra modules.

Perl is installed in /usr/local/bin
Libraries are at /usr/local/lib/perl5/ (5.8.8 & site_perl subdirs)

When I issue
#perl -V
This is the output - which is correct:
<PRE>
Characteristics of this binary (from libperl):
Compile-time options: PERL_MALLOC_WRAP USE_LARGE_FILES USE_PERLIO
Built under linux
Compiled at Sep 28 2007 01:14:17
%ENV:
PERL5LIB="/usr/local/lib/perl5/5.8.8"
@INC:
/usr/local/lib/perl5/5.8.8/i686-linux
/usr/local/lib/perl5/5.8.8
/usr/local/lib/perl5/5.8.8/i686-linux
/usr/local/lib/perl5/5.8.8
/usr/local/lib/perl5/site_perl/5.8.8/i686-linux
/usr/local/lib/perl5/site_perl/5.8.8
/usr/local/lib/perl5/site_perl
.
</PRE>

My problem is that when I run the program, perl is looking at the old perl stuff (which was managed by yum).

Here is the output:
<PRE>
Can't locate POE/Kernel.pm in @INC (@INC contains: /usr/lib/perl5/5.8.5 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5 PERL2EXE_STORAGE /usr/local/fonality/hud /tmp/p2xtmp-2401) at (eval 7) line 1.
BEGIN failed--compilation aborted at (eval 7) line 1.

PLEASE SEE THE PERL2EXE USER MANUAL UNDER "Can't locate somemodule.pm in @INC"
FOR AN EXPLANATION OF THE FOLLOWING MESSAGE:
Can't locate POE/Session.pm in @INC (@INC contains: /usr/lib/perl5/5.8.5 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5 PERL2EXE_STORAGE /usr/local/fonality/hud /tmp/p2xtmp-2401) at (eval line 1.
BEGIN failed--compilation aborted at (eval line 1.
could not import qw(Kernel Session) at /usr/local/fonality/hud/hudlite-server line 11
BEGIN failed--compilation aborted at /usr/local/fonality/hud/hudlite-server line 11.
</PRE>

Just to re-iterate: The modules _are_ installed in /usr/local/lib/perl5 but for some reason the (proprietary) program seems to be looking where yum used to keep them.

Is there a setting in fedora where this value is kept because I have a feeling the proprietary program is referring to this setting??

Kind Regards,
mylo78
mylo78 is offline  


Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 08:50 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2