in reply to Re: use lib in cgi env
in thread use lib in cgi env
svn co http://your_repository/trunk local_directory is a good way to avoid this. This would have solved the discrepancy between his "development" and "production" relative paths and avoided the problem described. I still stick to my earlier statement that setting PERL5LIB or similar environment variable is the best way to resolve the problem. I presume the production version runs as a different user from the development version, so this could be accomplished by setting the environment variable in ~/.bashrc or the Apache config files.
I'll leave exactly how to do that as a Google exercise as its getting past my bedtime :-)
|
|---|