Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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?