Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

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 -rw------- 1 root root 62 Oct 7 11:30 # and heres the script that includes it: #!/usr/bin/perl require '';
Yep, thats the whole thing.

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

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2021-05-13 10:38 GMT
Find Nodes?
    Voting Booth?
    Perl 7 will be out ...

    Results (134 votes). Check out past polls.