Skip Menu |

This queue is for tickets about the Findbin-Real CPAN distribution.

Report information
The Basics
Id: 17384
Status: rejected
Priority: 0/
Queue: Findbin-Real

People
Owner: Nobody in particular
Requestors: perl233 [...] macrotex.net
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.04
Fixed in: 1.04



Subject: FindBin::Real not getting real path under mod_perl
I am attempting to use the FindBin::Real in a perl script that runs under mod_perl. Here is some Perl code that illustrates the problem: #!/usr/bin/perl use FindBin::Real qw(Bin); use lib Bin() . '../../libXX'; print Bin() . '../../libXX'; use MyModule ; If I run this from the command it prints out the line /home/joeuser/lib../../libXX which is correct. However, when I try to do a PerlRequire of this file in my Apache configuration file, I get the error Can't locate MyModule.pm in @INC (@INC contains: /../../libXX /usr/lib/perl5/5.8.0/i386-linux-thread-mul ti /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i38 etc. Note that the first path in the @INC array seems to have dropped off the /home/joeuser prefix. The platform is RedHat Enterprise Linux 3 with the standard software that comes with that plaform (perl 5.8.0, Apache 2, etc.) I am using the Perl package FindBin::Real version 1.04 downloaded from CPAN.
From: STRO [...] cpan.org
Sorry for late reply. Do you run Apache from the same user (joeuser)? Normally Apache is running under user "nobody", so current directory definitely differs from '/home/joeuser/'. On Tue Jan 31 00:29:11 2006, guest wrote: Show quoted text
> I am attempting to use the FindBin::Real in a perl script that runs > under mod_perl. Here is some Perl code that illustrates the problem: > > #!/usr/bin/perl > > use FindBin::Real qw(Bin); > use lib Bin() . '../../libXX'; > > print Bin() . '../../libXX'; > > use MyModule ; > > If I run this from the command it prints out the line > /home/joeuser/lib../../libXX > > which is correct. However, when I try to do a PerlRequire of this file > in my Apache configuration file, I get the error > > Can't locate MyModule.pm in @INC (@INC contains: /../../libXX > /usr/lib/perl5/5.8.0/i386-linux-thread-mul > ti /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i38 etc. > > Note that the first path in the @INC array seems to have dropped off the > /home/joeuser prefix. > > The platform is RedHat Enterprise Linux 3 with the standard software > that comes with that plaform (perl 5.8.0, Apache 2, etc.) I am using the > Perl package FindBin::Real version 1.04 downloaded from CPAN. > > > >