Hi,
Mmmm
>
>
> -------------------- Apache 1 error log:
> [Mon Aug 22 16:29:35 2005] [error] Error executing run mode 'mode2':
> Can't locate DoubleSubApp.pm in @INC (@INC contains:
> /usr/local/lib/perl/5.6.1 /usr/local/share/perl/5.6.1 /usr/lib/perl5
> /usr/share/perl5 /usr/lib/perl/5.6.1 /usr/share/perl/5.6.1
> /usr/local/lib/site_perl /etc/apache/ /etc/apache/lib/perl) at
> /home/rruiz/perl/ee/DoubleApp.pm line 25.
> at /xtra/webs/server/pcgi-bin/double-mod line 15
>
>
> -------------------- Apache 2 error log:
> [Mon Aug 22 17:28:28 2005] [error] Error executing run mode 'mode2': Can't locate DoubleSubApp.pm in @INC (@INC contains: /usr/lib/perl5/Apache2 /etc/perl /usr/local/lib/perl/5.8.4 /usr/local/share/perl/5.8.4 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl /etc/apache2) at /home/rruiz/perl/ee/DoubleApp.pm line 25.\n at /home/rruiz/pcgi-bin/double-mod
> line 16\n
>
Have you tried to include the location of DoubleSubApp in the @INC variable?
So far I have foud three ways to do it.
use lib '/wherever/DoubleSubApp/is';
But this one forces you to include a hardcoded path into code. And it
will force you to change the code whenever you move the application to
another place.
So you can relate it to the location of the executable:
use FindBin;
use lib "$FindBin::Bin/..";
where $FindBin::Bin returns the PATH where the .pl is running.
And finally you can use an environment variable:
The apacheApp.conf
Alias /cap /home/calba/devel
<Directory "/home/calba/devel">
SetEnv LIBCORE /home/calba/devel
AllowOverride FileInfo AuthConfig Limit
...
</Directory>
And in the PERL code:
use lib $ENV{'LIBCORE'};
Hope it helps.
--
Saludos
César
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/suppressed/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.