LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-02-2009, 07:01 AM   #1
bradvan
Member
 
Registered: Mar 2009
Posts: 367

Rep: Reputation: 61
perl module not found by normal user


Hello,

I installed a CPAN module as root on a RHEL 5 system. As root, I can use it in a perl script. As a normal user, it says it is not found. I'm assuming this has to do with the @INC variable, but I'm not sure how to change it. Any suggestions would be appreciated.

Thanks!
 
Old 04-02-2009, 07:26 AM   #2
Su-Shee
Member
 
Registered: Sep 2007
Location: Berlin
Distribution: Slackware
Posts: 510

Rep: Reputation: 53
If the module is installed correctly, it doesn't matter if it's installed as root.

Check your @INC and look by hand wether or not the module is really there.

perl -e "print @INC;" will tell you.
 
Old 04-02-2009, 07:47 AM   #3
bradvan
Member
 
Registered: Mar 2009
Posts: 367

Original Poster
Rep: Reputation: 61
Well, the module was installed to /usr/lib/perl5/site_perl/5.8.8/XML/Simple.pm and /usr/lib/perl5/site_perl/5.8.8 is in @INC. There is nothing in /usr/lib/perl5/site_perl/5.8.8 except the XML directory. Do I need something else there?

Thanks
 
Old 04-02-2009, 08:07 AM   #4
bradvan
Member
 
Registered: Mar 2009
Posts: 367

Original Poster
Rep: Reputation: 61
solved

I found the problem. The XML and other subdirectories had 750 permission. When I changed to 755, it worked.

Thanks!
 
Old 04-02-2009, 09:47 AM   #5
Su-Shee
Member
 
Registered: Sep 2007
Location: Berlin
Distribution: Slackware
Posts: 510

Rep: Reputation: 53
Try installing some other module via the CPAN shell mechanism and check just in case wether or not the directory permissions are correct - you really don't want to change it every time you install some new module.

If they're not, you better take a look at your umask-settings or you have to change your user/group setup - I don't know how Red Hat treats its Perl. Maybe you just have to add "users" to some group.

And just to have it mentioned: 5.10 is the recent Perl version.
 
  


Reply



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
Installing perl module - sh: make: command not found Toadman Mandriva 2 12-28-2008 09:11 PM
Perl module Compress::Zlib installed but perl not detecting it danran Programming 0 05-03-2007 01:50 PM
Perl datescript Issue, missing perl module? stefaandk Programming 5 02-19-2006 10:55 PM
Problem with perl module for w3c validator to work on my local Apache+PHP+perl instal tbamt Linux - Software 0 12-16-2004 05:37 PM
F-Prot update crashes, PERL module not found? Spasmolytic Linux - Software 7 11-03-2004 11:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:20 AM.

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
Open Source Consulting | Domain Registration