Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Some users cannot access perl modules

by sundialsvc4 (Monsignor)
on Nov 03, 2011 at 13:57 UTC ( #935663=note: print w/ replies, xml ) Need Help??


in reply to Some users cannot access perl modules

This appears to me, superficially, to simply be a matter of Perl not being able to find the CPAN module(s) in question.   Which would lead us back to the @INC array and the various mechanisms which influence its content:

  • The use lib statement.
  • The PERL5LIB environment variable (whose value is set in very different ways, please note, in Linux/Unix vs. Windows).
  • The base-list that is compiled into Perl.

Observe that the error-message output is telling you what the @INC array contains.   The perl -V command (with a capital “V”) will tell you the same thing.   Therefore, I would first go to a user for whom the command is working and use this command to see the list.   Then, go to a user for whom it isn’t, and do the same thing again.

The lists might turn out to be different for one user versus the other.   (See above.)   Or, it may prove to be the case that some of the directory paths listed are not accessible to one user versus the other.   (Perl silently ignores paths that it can’t find or that it can’t access.)


Comment on Re: Some users cannot access perl modules

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2014-08-30 08:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (291 votes), past polls