Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re: Some users cannot access perl modules

by sundialsvc4 (Abbot)
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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://935663]
and the monks are mute...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (8)
As of 2018-01-23 15:12 GMT
Find Nodes?
    Voting Booth?
    How did you see in the new year?

    Results (248 votes). Check out past polls.