• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 210
  • Last Modified:

library path @INC in a cgi-bin script

i have got two versions of the same program, one run at command line and the other using cgi.  both of them use a library module i installed on the server under a non-standard path, say /home/me/lib.  the commandline version works fine after i set the env to include PERL5LIB.  

the problem is that the cgi version refuses to run complaining that it can't locate the module.

any idea?
0
crest
Asked:
crest
  • 2
1 Solution
 
ozoCommented:
use lib "/home/me/lib";
0
 
crestAuthor Commented:
i tried use lib "/home/me/lib", but it didn't work.  appearently, the module that i used, uses other modules living in the same path, i.e. /home/me/lib
0
 
sykknCommented:
I have done it by changing the shebang (#!) before.  Looked like this:

#!/opt/perl/bin/perl -w -I/home/jowings/perl/lib/site_perl/5.6.1
0
 
crestAuthor Commented:
cheers sykkn.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now