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

Re: Require a script not found in @INC array

by shemp (Deacon)
on Oct 07, 2004 at 16:37 UTC ( #397360=note: print w/replies, xml ) Need Help??


in reply to Require a script not found in @INC array

It could also be a problem with file ownership / permissions. If the user that is running the web server, and thus the CGI's doesnt have permission to read the require'd libraries, you will get that exact error. For instance, i ran a trivial test where i changed a librarys owner and group to root, with a 600 permission, then tried to require it in another script, and got the cant locate library in @INC error. Heres what i mean:
ls -l test_lib.pl -rw------- 1 root root 62 Oct 7 11:30 test_lib.pl # and heres the script that includes it: #!/usr/bin/perl require 'test_lib.pl';
Yep, thats the whole thing.

So you may want to look at permissions, ownership of your required files.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2020-12-02 19:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you use taint mode?





    Results (45 votes). Check out past polls.

    Notices?