You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by aparna aryan <ap...@gmail.com> on 2010/08/10 11:49:43 UTC

[users@httpd] Unable to load perl file

We have installed apache(Apache/2.2.10) and we have a .pl file that is being
loaded in httpd.conf.

When we are trying to restart the server, We receive the following error :

[Tue Aug 10 11:34:31 2010] [error] Can't locate ARS.pm in @INC (@INC
contains: /opt/app/ars/ovsc/perl /usr/perl5/5.8.4/lib/sun4-solaris-64int
 /usr/perl5/5.8.4/lib /usr/perl5/site_perl/5.8.4/sun4-solaris-64int
/usr/perl5/site_perl/5.8.4 /usr/perl5/site_perl /usr/perl5/vendor_perl/5.
8.4/sun4-solaris-64int /usr/perl5/vendor_perl/5.8.4 /usr/perl5/vendor_perl .
/opt/web/apache/app/ars) at /opt/app/ars/ovsc/perl/startup.pl li
ne 5.\nBEGIN failed--compilation aborted at /opt/app/ars/ovsc/perl/
startup.pl line 5.\nCompilation failed in require at (eval 2) line 1.\n
[Tue Aug 10 11:34:31 2010] [error] Can't load Perl file:
/opt/app/ars/ovsc/perl/startup.pl for server hostname:0, exiting...


please let us know what the issue is.

Re: [users@httpd] Unable to load perl file

Posted by Rich Bowen <rb...@rcbowen.com>.
On Aug 10, 2010, at 5:49 AM, aparna aryan wrote:

> We have installed apache(Apache/2.2.10) and we have a .pl file that  
> is being loaded in httpd.conf.
>
> When we are trying to restart the server, We receive the following  
> error :
>
> [Tue Aug 10 11:34:31 2010] [error] Can't locate ARS.pm in @INC (@INC  
> contains: /opt/app/ars/ovsc/perl /usr/perl5/5.8.4/lib/sun4- 
> solaris-64int
>  /usr/perl5/5.8.4/lib /usr/perl5/site_perl/5.8.4/sun4-solaris-64int / 
> usr/perl5/site_perl/5.8.4 /usr/perl5/site_perl /usr/perl5/ 
> vendor_perl/5.
> 8.4/sun4-solaris-64int /usr/perl5/vendor_perl/5.8.4 /usr/perl5/ 
> vendor_perl . /opt/web/apache/app/ars) at /opt/app/ars/ovsc/perl/ 
> startup.pl li
> ne 5.\nBEGIN failed--compilation aborted at /opt/app/ars/ovsc/perl/ 
> startup.pl line 5.\nCompilation failed in require at (eval 2) line  
> 1.\n
> [Tue Aug 10 11:34:31 2010] [error] Can't load Perl file: /opt/app/ 
> ars/ovsc/perl/startup.pl for server hostname:0, exiting...
>
>
> please let us know what the issue is.
>


First, note that this is a Perl problem, not an Apache httpd problem.  
The problem is there in the first line of the error message:

Can't locate ARS.pm

This means that, somewhere in your perl script, you have "use ARS;",  
and you don't have the ARS.pm Perl module installed.

Looks like ARS is part of something called "Remedy" - http://cpanforum.com/threads/190

You'll need to install ARS before this Perl script will work. You'll  
find help in installing ARS elsewhere ... unless you're lucky enough  
to find someone here who uses Remedy. I don't.

--
Rich Bowen
rbowen@rcbowen.com




[users@httpd] Re: Unable to load perl file

Posted by aparna aryan <ap...@gmail.com>.
Hello Rich,
Sorry for the late reply.
our perl file that apache is trying to load contains this :

use lib qw(/opt/app/ars/ovsc/perl);

use MIME::Base64;
use ARS;
use Unicode::String;
use POSIX;

use Apache2::Const -compile => qw(LOG_DEBUG LOG_INFO);

$ENV{ARCONFIGDIR}="/opt/ars/arserv/0/conf";

$MAIN::OVSC_PATH='/opt/app/ars/ovsc';
$MAIN::UPLOAD_PATH='/opt/app/ars/ovsc/ToWIH';
$MAIN::MBOX="lars.karlsson\@hp.com";

Please suggest us what needs to be done.

On Tue, Aug 10, 2010 at 3:19 PM, aparna aryan <ap...@gmail.com> wrote:

> We have installed apache(Apache/2.2.10) and we have a .pl file that is
> being loaded in httpd.conf.
>
> When we are trying to restart the server, We receive the following error :
>
> [Tue Aug 10 11:34:31 2010] [error] Can't locate ARS.pm in @INC (@INC
> contains: /opt/app/ars/ovsc/perl /usr/perl5/5.8.4/lib/sun4-solaris-64int
>  /usr/perl5/5.8.4/lib /usr/perl5/site_perl/5.8.4/sun4-solaris-64int
> /usr/perl5/site_perl/5.8.4 /usr/perl5/site_perl /usr/perl5/vendor_perl/5.
> 8.4/sun4-solaris-64int /usr/perl5/vendor_perl/5.8.4 /usr/perl5/vendor_perl
> . /opt/web/apache/app/ars) at /opt/app/ars/ovsc/perl/startup.pl li
> ne 5.\nBEGIN failed--compilation aborted at /opt/app/ars/ovsc/perl/
> startup.pl line 5.\nCompilation failed in require at (eval 2) line 1.\n
> [Tue Aug 10 11:34:31 2010] [error] Can't load Perl file:
> /opt/app/ars/ovsc/perl/startup.pl for server hostname:0, exiting...
>
>
> please let us know what the issue is.
>
>