Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: perl lost its modules!

by seandarcy (Initiate)
on Apr 01, 2014 at 23:14 UTC ( #1080652=note: print w/replies, xml ) Need Help??


in reply to Re: perl lost its modules!
in thread perl lost its modules!

ls -l /usr/share | grep perl5 drwxr-xr-x. 49 root root 4096 Mar 31 18:40 perl5

I don't see how it's a system permissions issue. As user, I can cat the file

made a small test script:

$ cat perl-test.pl #!/usr/bin/perl use lib '/usr/share/perl5'; use strict; print "ok"; $ chmod +x perl-test.pl $ ./perl-test.pl Can't locate lib.pm: Permission denied at ./perl-test.pl line 2. BEGIN failed--compilation aborted at ./perl-test.pl line 2.

Not sure what you mean by printing @INC in a BEGIN block, but I sure don't know how.

Replies are listed 'Best First'.
Re^3: perl lost its modules!
by LanX (Archbishop) on Apr 02, 2014 at 01:26 UTC
    > I don't see how it's a system permissions issue. As user, I can cat the file

    Directory permissions distinguish between accessing files and reading the directory. If Perl can't read the dir then it can't find the modules, while it's still possible to access the files by full path.

    Anyway it seems boftx already found the solution further down. :)

    Cheers Rolf

    ( addicted to the Perl Programming Language)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (10)
As of 2019-09-20 18:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The room is dark, and your next move is ...












    Results (267 votes). Check out past polls.

    Notices?