You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Jason Dixon <ja...@dixongroup.net> on 2005/04/22 20:30:01 UTC

libapreq install fails for non-root Apache/mod_perl

I'm trying to install a non-root statically compiled Apache/mod_perl 
(1.x) on a test server.  I've installed everything in my home 
directory, including Apache::Session, but libapreq is failing to 
recognize the mod_perl installation.  Can someone tell me how to get 
libapreq installed for this scenario?  Here's the failed attempt:

[jason@polaris libapreq-1.33]$ perl Makefile.PL PREFIX=~/perl
mod_perl 1.x ( < 1.99) is required at Makefile.PL line 34.
BEGIN failed--compilation aborted at Makefile.PL line 36.

Thanks,

--
Jason Dixon
DixonGroup Consulting
http://www.dixongroup.net


Re: libapreq install fails for non-root Apache/mod_perl

Posted by Geoffrey Young <ge...@modperlcookbook.org>.

Jason Dixon wrote:
> I'm trying to install a non-root statically compiled Apache/mod_perl
> (1.x) on a test server.  I've installed everything in my home directory,
> including Apache::Session, but libapreq is failing to recognize the
> mod_perl installation.  Can someone tell me how to get libapreq
> installed for this scenario?  Here's the failed attempt:
> 
> [jason@polaris libapreq-1.33]$ perl Makefile.PL PREFIX=~/perl
> mod_perl 1.x ( < 1.99) is required at Makefile.PL line 34.
> BEGIN failed--compilation aborted at Makefile.PL line 36.

when you install modules you need to either put them someplace where perl
can see them by default, or tell perl where to find them.

if you installed mod_perl into your home directory then you need to tell
perl about it if you want Makefile.PL to be able to find it.  something like

$ PERL5LIB=~/perl/lib perl Makefile.PL PREFIX=~/perl

HTH

--Geoff

Re: libapreq install fails for non-root Apache/mod_perl

Posted by Jason Dixon <ja...@dixongroup.net>.
On Apr 22, 2005, at 3:21 PM, Philip M. Gollucci wrote:

> Jason Dixon wrote:
>
>> I'm still using the default perl binary (/usr/bin/perl).
>
> Run this command instead:
>
> ~/perl/bin/perl Makefile.PL PREFIX=~/perl
>
> You shoule be good to go.

No, I'm not using a custom perl, I installed mod_perl using the 
original system perl (5.8.0).  There is no perl installed in my home 
directory.

Thanks,

--
Jason Dixon
DixonGroup Consulting
http://www.dixongroup.net



Re: libapreq install fails for non-root Apache/mod_perl

Posted by "Philip M. Gollucci" <pg...@p6m7g8.com>.
Jason Dixon wrote:

> On Apr 22, 2005, at 3:05 PM, Philip M. Gollucci wrote:
>
>> One other question:
>>
>> [jason@polaris libapreq-1.33]$ perl Makefile.PL PREFIX=~/perl
>> What is your path.  I hope that perl is ~/perl/bin/perl
>> and not /usr/local/bin/perl or /usr/bin/perl. Unless you altered your 
>> path
>> or you aliased perl, thats likely picking the wrong one.
>>
>> Basically make sure that command used the correct perl binary
>
>
> I'm still using the default perl binary (/usr/bin/perl).

Run this command instead:

~/perl/bin/perl Makefile.PL PREFIX=~/perl

You shoule be good to go.


END
-----------------------------------------------------------------------------
Philip M. Gollucci
Senior Developer - Liquidity Services Inc.
Phone:  202.558.6268 (Direct)
E-Mail: pgollucci@liquidation.com
Web:    http://www.liquidation.com


Re: libapreq install fails for non-root Apache/mod_perl

Posted by Jason Dixon <ja...@dixongroup.net>.
On Apr 22, 2005, at 3:05 PM, Philip M. Gollucci wrote:

> One other question:
>
> [jason@polaris libapreq-1.33]$ perl Makefile.PL PREFIX=~/perl
> What is your path.  I hope that perl is ~/perl/bin/perl
> and not /usr/local/bin/perl or /usr/bin/perl. Unless you altered your 
> path
> or you aliased perl, thats likely picking the wrong one.
>
> Basically make sure that command used the correct perl binary

I'm still using the default perl binary (/usr/bin/perl).

--
Jason Dixon
DixonGroup Consulting
http://www.dixongroup.net



Re: libapreq install fails for non-root Apache/mod_perl

Posted by "Philip M. Gollucci" <pg...@p6m7g8.com>.
Philip M. Gollucci wrote:

> Jason Dixon wrote:
>
>> On Apr 22, 2005, at 2:46 PM, Philip M. Gollucci wrote:
>>
>>> Jason Dixon wrote:
>>>
>>>> I'm trying to install a non-root statically compiled 
>>>> Apache/mod_perl (1.x) on a test server.  I've installed everything 
>>>> in my home directory, including Apache::Session, but libapreq is 
>>>> failing to recognize the mod_perl installation.  Can someone tell 
>>>> me how to get libapreq installed for this scenario?  Here's the 
>>>> failed attempt:
>>>>
>>>> [jason@polaris libapreq-1.33]$ perl Makefile.PL PREFIX=~/perl
>>>> mod_perl 1.x ( < 1.99) is required at Makefile.PL line 34.
>>>> BEGIN failed--compilation aborted at Makefile.PL line 36.
>>>
One other question:

[jason@polaris libapreq-1.33]$ perl Makefile.PL PREFIX=~/perl
What is your path.  I hope that perl is ~/perl/bin/perl
and not /usr/local/bin/perl or /usr/bin/perl. Unless you altered your path
or you aliased perl, thats likely picking the wrong one.

Basically make sure that command used the correct perl binary

-- 
END
-----------------------------------------------------------------------------
Philip M. Gollucci
Senior Developer - Liquidity Services Inc.
Phone:  202.558.6268 (Direct)
E-Mail: pgollucci@liquidation.com
Web:    http://www.liquidation.com


Re: libapreq install fails for non-root Apache/mod_perl

Posted by Jason Dixon <ja...@dixongroup.net>.
On Apr 22, 2005, at 3:20 PM, Geoffrey Young wrote:

> you'll need to ajust PERL5LIB so that it works.  I suspect it would be
>
>   $ PERL5LIB=~/lib64/perl5/ perl Makefile.PL
>
> at any rate, you can check what @INC looks like by just doing
>
>   $ PERL5LIB=~/somelib perl -V
>
> and adjust PERL5LIB until you get 
> /home/jason/lib64/perl5/site_perl/5.8.0/
> in there - I think /home/jason/lib64/perl5/ should be sufficient to 
> pull in
> the site_lib and beyond, but you'll need to experiment until you get
> mod_perl.pm in @INC.

Thanks, that got me in the right direction.  :)

[jason@polaris libapreq-1.33]$ PERL5LIB=~/lib64/perl5/site_perl perl 
Makefile.PL PREFIX=~/perl

skipping test setup... which requires Apache::Test 1.13 or higher
Checking if your kit is complete...
Looks good
Warning: prerequisite Apache::Test 1.13 not found. We have 1.0.
Writing Makefile for libapreq
mkdir ../blib
mkdir ../blib/arch
mkdir ../blib/arch/auto
mkdir ../blib/arch/auto/libapreq
Writing Makefile for Apache::Request
Writing Makefile for Apache::Cookie
Writing Makefile for libapreq

w00t!

--
Jason Dixon
DixonGroup Consulting
http://www.dixongroup.net



Re: libapreq install fails for non-root Apache/mod_perl

Posted by Geoffrey Young <ge...@modperlcookbook.org>.
> /home/jason/lib64/perl5/site_perl/5.8.0/mod_perl.pm
>     $mod_perl::VERSION = "1.29";
>         $class->UNIVERSAL::VERSION(shift);
> 
> I'll probably reinstall that in ~/apache to clean things up.  Anyways, I
> tried Geoffrey's suggestion based on this new information, but it still
> doesn't see it:
> 
> [jason@polaris libapreq-1.33]$ PERL5LIB=~/lib64 perl Makefile.PL
> PREFIX=~/perl
> mod_perl 1.x ( < 1.99) is required at Makefile.PL line 34.
> BEGIN failed--compilation aborted at Makefile.PL line 36.

you'll need to ajust PERL5LIB so that it works.  I suspect it would be

  $ PERL5LIB=~/lib64/perl5/ perl Makefile.PL

at any rate, you can check what @INC looks like by just doing

  $ PERL5LIB=~/somelib perl -V

and adjust PERL5LIB until you get /home/jason/lib64/perl5/site_perl/5.8.0/
in there - I think /home/jason/lib64/perl5/ should be sufficient to pull in
the site_lib and beyond, but you'll need to experiment until you get
mod_perl.pm in @INC.

--Geoff

Re: libapreq install fails for non-root Apache/mod_perl

Posted by Jason Dixon <ja...@dixongroup.net>.
On Apr 22, 2005, at 3:02 PM, Philip M. Gollucci wrote:

> Jason Dixon wrote:
>
>> I installed mod_perl 1.29 with Apache 1.3.33.  I'm trying to install 
>> Bricolage non-root, and Apache/mod_perl 1.x is a requirement.
>
> Post this output:
>
> find ~/perl -type f -name "mod_perl*.pm" -print -exec grep "VERSION" 
> {} \;

Ok, I actually installed Apache/mod_perl in my home, so mod_perl is 
found in ~/lib64:

[jason@polaris libapreq-1.33]$ find ~ -type f -name "mod_perl*.pm" 
-print -exec grep "VERSION" {} \;
/home/jason/src/mod_perl-1.29/lib/mod_perl.pm
     $mod_perl::VERSION = "1.29";
         $class->UNIVERSAL::VERSION(shift);
/home/jason/src/mod_perl-1.29/lib/mod_perl_hooks.pm
/home/jason/src/mod_perl-1.29/blib/lib/mod_perl.pm
     $mod_perl::VERSION = "1.29";
         $class->UNIVERSAL::VERSION(shift);
/home/jason/src/mod_perl-1.29/blib/lib/mod_perl_hooks.pm
/home/jason/lib64/perl5/site_perl/5.8.0/mod_perl.pm
     $mod_perl::VERSION = "1.29";
         $class->UNIVERSAL::VERSION(shift);

I'll probably reinstall that in ~/apache to clean things up.  Anyways, 
I tried Geoffrey's suggestion based on this new information, but it 
still doesn't see it:

[jason@polaris libapreq-1.33]$ PERL5LIB=~/lib64 perl Makefile.PL 
PREFIX=~/perl
mod_perl 1.x ( < 1.99) is required at Makefile.PL line 34.
BEGIN failed--compilation aborted at Makefile.PL line 36.

Thanks,

--
Jason Dixon
DixonGroup Consulting
http://www.dixongroup.net



Re: libapreq install fails for non-root Apache/mod_perl

Posted by "Philip M. Gollucci" <pg...@p6m7g8.com>.
Jason Dixon wrote:

> On Apr 22, 2005, at 2:46 PM, Philip M. Gollucci wrote:
>
>> Jason Dixon wrote:
>>
>>> I'm trying to install a non-root statically compiled Apache/mod_perl 
>>> (1.x) on a test server.  I've installed everything in my home 
>>> directory, including Apache::Session, but libapreq is failing to 
>>> recognize the mod_perl installation.  Can someone tell me how to get 
>>> libapreq installed for this scenario?  Here's the failed attempt:
>>>
>>> [jason@polaris libapreq-1.33]$ perl Makefile.PL PREFIX=~/perl
>>> mod_perl 1.x ( < 1.99) is required at Makefile.PL line 34.
>>> BEGIN failed--compilation aborted at Makefile.PL line 36.
>>>
>> Apparently you installled some version of mp2 before mp2 RC5.0
>> Its failing up front to save you sanity later.  If you're not using 
>> the mp2 installation, I would suggest you nuke the related files.
>
>
> I installed mod_perl 1.29 with Apache 1.3.33.  I'm trying to install 
> Bricolage non-root, and Apache/mod_perl 1.x is a requirement.

Post this output:

find ~/perl -type f -name "mod_perl*.pm" -print -exec grep "VERSION" {} \;

-- 
END
-----------------------------------------------------------------------------
Philip M. Gollucci
Senior Developer - Liquidity Services Inc.
Phone:  202.558.6268 (Direct)
E-Mail: pgollucci@liquidation.com
Web:    http://www.liquidation.com


Re: libapreq install fails for non-root Apache/mod_perl

Posted by Jason Dixon <ja...@dixongroup.net>.
On Apr 22, 2005, at 2:46 PM, Philip M. Gollucci wrote:

> Jason Dixon wrote:
>
>> I'm trying to install a non-root statically compiled Apache/mod_perl 
>> (1.x) on a test server.  I've installed everything in my home 
>> directory, including Apache::Session, but libapreq is failing to 
>> recognize the mod_perl installation.  Can someone tell me how to get 
>> libapreq installed for this scenario?  Here's the failed attempt:
>>
>> [jason@polaris libapreq-1.33]$ perl Makefile.PL PREFIX=~/perl
>> mod_perl 1.x ( < 1.99) is required at Makefile.PL line 34.
>> BEGIN failed--compilation aborted at Makefile.PL line 36.
>>
> Apparently you installled some version of mp2 before mp2 RC5.0
> Its failing up front to save you sanity later.  If you're not using 
> the mp2 installation, I would suggest you nuke the related files.

I installed mod_perl 1.29 with Apache 1.3.33.  I'm trying to install 
Bricolage non-root, and Apache/mod_perl 1.x is a requirement.

Thanks,

--
Jason Dixon
DixonGroup Consulting
http://www.dixongroup.net



Re: libapreq install fails for non-root Apache/mod_perl

Posted by "Philip M. Gollucci" <pg...@p6m7g8.com>.
Jason Dixon wrote:

> I'm trying to install a non-root statically compiled Apache/mod_perl 
> (1.x) on a test server.  I've installed everything in my home 
> directory, including Apache::Session, but libapreq is failing to 
> recognize the mod_perl installation.  Can someone tell me how to get 
> libapreq installed for this scenario?  Here's the failed attempt:
>
> [jason@polaris libapreq-1.33]$ perl Makefile.PL PREFIX=~/perl
> mod_perl 1.x ( < 1.99) is required at Makefile.PL line 34.
> BEGIN failed--compilation aborted at Makefile.PL line 36.
>
Apparently you installled some version of mp2 before mp2 RC5.0
Its failing up front to save you sanity later.  If you're not using the 
mp2 installation, I would suggest you nuke the related files. 


> Thanks,
>
> -- 
> Jason Dixon
> DixonGroup Consulting
> http://www.dixongroup.net



-- 
END
-----------------------------------------------------------------------------
Philip M. Gollucci
Senior Developer - Liquidity Services Inc.
Phone:  202.558.6268 (Direct)
E-Mail: pgollucci@liquidation.com
Web:    http://www.liquidation.com