<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Apache usually runs scripts as a special non-user, who likely would
not find ~user's libraries.<br>
<br>
On 25/01/2011 6:27 PM, Tyler Slijboom wrote:
<blockquote
cite="mid:AANLkTintxtSmnTUf86qSwvjxMyPobMAosVii7OK1vO-c@mail.gmail.com"
type="cite"><br>
Hello everyone,<br>
<br>
This is an Apache / Perl problem that I am having. <br>
<br>
I am using a CPAN Module in my perl CGI application. It is
Spreadsheet::ParseExcel<br>
<br>
I have installed the cpan module with tar.gz files.<br>
<br>
I have installed the dependencies.<br>
<br>
However, I did do so as a non-root user. The library that contains
these files is under a user folder, /home/user/lib<br>
<br>
Now, I have successfully configured Apache2 on this box. The html
directory is /var/www/html and the cgi folder is
/var/www/html/cgi-bin. I have verified they work because all of
the scripts in that folder that do not require the special modules
work in my firefox browser, ie. hello world, data dumps, simple
forms.<br>
<br>
However, when I try to run the scripts that use
"Spreadsheet::ParseExcel", I get the error that the module cannot
be found in @INC. However, I have a "use lib" statement at the
beginning of the script that adds the library. <br>
<br>
The scripts can be run in PUTTY without problem. Only when running
the script from the browser am I getting the issue.<br>
<br>
This web application was written on another box and works fine on
that box. Because I developped there of course. I put Apache2 on
my personal Ubuntu machine, and installed the web application and
modules here, and it works on my local box.<br>
<br>
Any insights on the issue?<br>
<br>
Thank you all for your time!<br clear="all">
<br>
-- <br>
Sincerely,<br>
Tyler Slijboom<br>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
kw-pm mailing list
<a class="moz-txt-link-abbreviated" href="mailto:kw-pm@pm.org">kw-pm@pm.org</a>
<a class="moz-txt-link-freetext" href="http://mail.pm.org/mailman/listinfo/kw-pm">http://mail.pm.org/mailman/listinfo/kw-pm</a></pre>
</blockquote>
</body>
</html>