You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Jay Strauss <me...@heyjay.com> on 2005/04/24 05:41:28 UTC
can't "use mod_perl" on debian
Hi,
I've got mod_perl installed on my debian sarge/testing box via:
aptitude install libapache2-mod-perl2
and I know my webserver is mod_perl aware
# head /var/log/apache2/error.log
[Sat Apr 23 06:56:28 2005] [notice] Apache/2.0.53 (Debian GNU/Linux)
mod_perl/1.999.21 Perl/v5.8.4 configured -- resuming normal operations
but when I do:
# perl -Mmod_perl
Can't locate mod_perl.pm in @INC (@INC contains: /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 .).
I'm trying to install Kwiki::ModPerl, but it "use mod_perl" and blows up
during the install
any hints?
Thanks
Jay
Re: can't "use mod_perl" on debian
Posted by Jay Strauss <me...@heyjay.com>.
Philip M. Gollucci wrote:
> Jay Strauss wrote:
>
>> Hi,
>> # perl -Mmod_perl
>> Can't locate mod_perl.pm in @INC (@INC contains: /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 .).
>
> Versions of mod_perl before 2.0-RC5 install mod_perl in a location not
> in your stangard @INC. This should in @INC/Apache2/mod_perl.pm.
>
> You'll need to add a
> push @INC, "/path/to/lib/Apache2";
> line to the Makefile.PL or whatever files use mod_perl.pm and related
> files for Kwiki.
>
> Thats why you need the Apache2.pm module, which _is_ in your standard
> @INC, as it adjusts your @INC to include these directories.
>
Thanks, adding the path to mod_perl.pm to my PERL5LIB worked perfect
Jay
Re: can't "use mod_perl" on debian
Posted by "Philip M. Gollucci" <pg...@p6m7g8.com>.
Jay Strauss wrote:
> Hi,
> # perl -Mmod_perl
> Can't locate mod_perl.pm in @INC (@INC contains: /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 .).
Versions of mod_perl before 2.0-RC5 install mod_perl in a location not
in your stangard @INC. This should in @INC/Apache2/mod_perl.pm.
You'll need to add a
push @INC, "/path/to/lib/Apache2";
line to the Makefile.PL or whatever files use mod_perl.pm and related
files for Kwiki.
Thats why you need the Apache2.pm module, which _is_ in your standard
@INC, as it adjusts your @INC to include these directories.
By doing the above mucking with @INC you can emulate this yourself.
You've probably seen the documentation telling you to add
PerlModule Apache2
in your httpd.conf
This is why.
> I'm trying to install Kwiki::ModPerl, but it "use mod_perl" and blows up
> during the install
Just a forewarning, as of 2.0-RC5 this changed. As it stands,
Kwiki::Modperl will _not_ work with 2.0-RC5 _until_ Kwiki is ported.
But once it has been, the above 'HACK's will not be neccessary.
http://perl.apache.org/docs/2.0/rename.html
HTH
--
END
------------------------------------------------------
Philip M. Gollucci (pgollucci@p6m7g8.com) 301.254.5198
Consultant / http://p6m7g8.net/Resume/resume.shtml
Senior Developer / Liquidity Services, Inc.
http://www.liquidityservicesinc.com