Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re: perl lost its modules!

by Laurent_R (Canon)
on Apr 01, 2014 at 22:39 UTC ( #1080651=note: print w/replies, xml ) Need Help??

in reply to perl lost its modules!

No idea, but maybe changing file permissions to 755 or possibly even 775 for every file in the INC hierarchy might solve the issue.

Replies are listed 'Best First'.
Re^2: perl lost its modules!
by garry (Novice) on Apr 02, 2014 at 01:27 UTC

    That's a bad idea.

    You shouldn't change the permissions on files in /usr directories except for the ones that you (the system administrator) own like in /usr/local.

    Furthermore, running a command like chmod -R is especially dangerous, if you do not understand what you are doing.

    The *.pm files in /usr are supposed to have 0644 permissions. They should not be set with execute. They are not executable files, after all.

    Having said all that, this particular change is most likely benign. But you should never change files in the /usr directory except your own. These files and their permissions are managed by the system and rpm(8) in the OP's case.

    Run the command rpm -V perl to see all the "damage" now.

Re^2: perl lost its modules!
by seandarcy (Initiate) on Apr 01, 2014 at 23:30 UTC
     chmod -R 775 /usr/share/perl5

    no success. And I can already read the modules: for instance I can cat It doesn't appear to be a linux permissions issue.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1080651]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2019-09-21 08:48 GMT
Find Nodes?
    Voting Booth?
    The room is dark, and your next move is ...

    Results (271 votes). Check out past polls.