LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-04-2013, 12:07 AM   #1
Alpha90
Member
 
Registered: Jul 2012
Posts: 97

Rep: Reputation: Disabled
Misconfiguration issue causing system perl files like perldoc to not locate modules


Today I was trying to install a old perl version(I am a novice at perl programming book uses an older version) in a self contained environment with perlbrew. Somehow in doing so I mistakenly modified something on my distros core_perl/vendor_perl and I am not sure what I did.

That being said I know the problem lies with permissions. For example if I use perldoc as my normal user I get the following message

Quote:
Can't locate Pod/Perldoc.pm: Permission denied at /usr/bin/core_perl/perldoc line 9.
BEGIN failed--compilation aborted at /usr/bin/core_perl/perldoc line 9.
However if I do the same as root then perldoc works.

All my usr binary directories are world readable and executable so I do not know why perldoc can not find its module. I also reinstalled all installed perl packages and that did not help. I am not sure what to do to fix this because frankly I do not know what I did wrong to cause this problem in the first place. IF anyone can lead me in the correct direction would be much appreciated.
 
Old 08-05-2013, 01:18 AM   #2
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
Hi,

leave the version of Perl as it is and declare which old version to use in your scripts. It's described here http://stackoverflow.com/questions/1...of-perl-to-use
simply
Code:
#!/usr/bin/perl
use 5.?? # your version here
...
Markus
 
  


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
Issue with installing Perl CPAN Modules on Ubuntu 11.04 NeonFlash Linux - Software 4 07-30-2012 07:07 AM
Postfix misconfiguration or DNS issue willcastle Linux - General 9 02-18-2011 12:12 AM
perl modules for unix system info bigearsbilly Programming 6 02-22-2010 02:44 PM
perl cpam modules installation issue jindalarpan Linux - Server 4 05-16-2008 11:53 PM
Is 'Can't locate module block-major-xx' causing this system to crash? stshores24 Red Hat 1 10-05-2006 09:01 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:51 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
Open Source Consulting | Domain Registration