correct @INC path not detected by web browser
I install RSPerl one of my systems. When I try to run a cgi script, the perl module R.pm can not found. I can run the script manually without any problem. I have manually set the LD_LIBRARY_PATH and PERL5LIB to the correct paths.
System info: running FC3, with apache 2.0.53, and perl 5.8.5.
RSPerl is installed
R.pm is located at
When I try to run the script from /var/www/cgi-bin/mfitzpat via the web browser, the listed paths for finding R.pm in @INC are incorrect.
web browser error:
Can't locate R.pm in @INC (@INC contains: /usr/lib/perl5/5.8.5/i386-linux-thread-multi /usr/lib/perl5/5.8.5.....
EGIN failed--compilation aborted at /var/www/cgi-bin/mfitzpat/example3.pl line 4.
When I check @INC, the path to R.pm it is listed.
/$ perl -e 'print join "\n", @INC'
as well as /usr/lib/perl5/5.8.5, etc
script fails at line 4
use CGI qw(:standard);
use CGI::Carp qw(fatalsToBrowser);
I have tried to append the full path to "use R", but it did not work. Gives a different error.
The httpd.conf relative entries
LoadModule cgi_module modules/mod_cgi.so
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
# Options None
Allow from all
AddHandler cgi-script .c
So, my question is how can I get the correct @INC path for R.pm to be seen by the web browser?
Thank you for any advice.