You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by mahboobeh soleimani <ma...@yahoo.com> on 2004/10/27 08:25:49 UTC
Can't locate ../Functions/db.pl in @INC
Hi every body.
I have a apache 1.3.31 and mod_perl 1.28 and used
<Files *.pl>
SetHandler perl-script
PerlHandler Apache::PerlRun
PerlSendHeader On
</Files>
in http.conf
but when i enter:
perl /root/prelude/piwi/test/index.pl
i can see this error :
Can't locate ../Functions/db.pl in @INC (@INC
contains:
/usr/lib/perl5/5.8.1/i38sr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.vendor_perl/5.8.1/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.1 /usr/d-multi
/usr/lib/perl5/vendor_perl/5.8.0
/usr/lib/perl5/vendor_perl /usr/lib/perrl5/5.8.1 .) at
/root/prelude/piwi/test/index.pl line 3.
also i can not view my index.pl by Mozilla
could you please guide me?
regards.
M.S.
__________________________________
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html
Re: Can't locate ../Functions/db.pl in @INC
Posted by Craig Moynes <cr...@gmail.com>.
I'll give this a shot, seeing as no one seemed to have answered:
In your pl files you can try including something like:
use lib qw(directory containing module directories);
Example:
use lib qw(/usr/local/apache2/perl);
In my config I have
PerlRequire /usr/local/apache2/perl/startup.pl
which contains:
use lib qw(/usr/local/apache2/perl);
1;
Not sure if this will work with your version of apache.
Cheers,
Craig
On Tue, 26 Oct 2004 23:25:49 -0700 (PDT), mahboobeh soleimani
<ma...@yahoo.com> wrote:
> Hi every body.
>
> I have a apache 1.3.31 and mod_perl 1.28 and used
>
> <Files *.pl>
>
> SetHandler perl-script
> PerlHandler Apache::PerlRun
> PerlSendHeader On
> </Files>
>
> in http.conf
>
> but when i enter:
>
> perl /root/prelude/piwi/test/index.pl
>
> i can see this error :
>
> Can't locate ../Functions/db.pl in @INC (@INC
> contains:
> /usr/lib/perl5/5.8.1/i38sr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi
> /usr/lib/perl5/site_perl/5.vendor_perl/5.8.1/i386-linux-thread-multi
> /usr/lib/perl5/vendor_perl/5.8.1 /usr/d-multi
> /usr/lib/perl5/vendor_perl/5.8.0
> /usr/lib/perl5/vendor_perl /usr/lib/perrl5/5.8.1 .) at
> /root/prelude/piwi/test/index.pl line 3.
>
> also i can not view my index.pl by Mozilla
>
> could you please guide me?
>
> regards.
>
> M.S.
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail Address AutoComplete - You start. We finish.
> http://promotions.yahoo.com/new_mail
>
> --
> Report problems: http://perl.apache.org/bugs/
> Mail list info: http://perl.apache.org/maillist/modperl.html
> List etiquette: http://perl.apache.org/maillist/email-etiquette.html
>
>
--
Primer:
Shane Carruth: It's about some engineers that are trying to build a
device that "degrades" gravity. They find out it has unexplainable
properties. Hilarity ensues.
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html