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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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?