You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by "Philippe M . Chiasson" <go...@cpan.org> on 2001/05/25 19:51:52 UTC

[Patch] perl Makefile.PL PREFIX=/foo/bar breakage

When passing a PREFIX=/foo/bar to Makefile.PL, all the perl .pm will get installed
under /foo/bar/lib/site_perl/perl-version/perl-arch but mod_perl.so isn't aware of
that.  So, mod_perl will refuse to start, failing to locate Apache.pm.  My first
way around this was to PerlRequire a file before anything else and push /foo/bar/lib/site_perl/perl-version/perl-arch
on the @INC path, but it's not very elegant.

This patches automatically makes sure the PREFIX path, if specified, is placed first in the @INC
path.

-- 
+-----------------------------------------------+
| Philippe M. Chiasson  <go...@cpan.org>        |
| SmartWorker http://www.smartworker.org        |
|     IM : gozerhbe  ICQ : gozer/18279998       |
|   64.8% computer corrupt according to         |
| http://www.freespeech.org/ljk/purity.html     |
+-----------------------------------------------+
You're much more likely to be knocked down by a snowball
than by an equivalent number of snowflakes. 
	-- Larry Wall

perl -e '$$=\${gozer};{$_=unpack(P26,pack(L,$$));/^Just Another Perl Hacker!\n$/&&print||$$++&&redo}'

Re: [Patch] perl Makefile.PL PREFIX=/foo/bar breakage

Posted by Doug MacEachern <do...@covalent.net>.
On Fri, 25 May 2001, Philippe M . Chiasson wrote:

> When passing a PREFIX=/foo/bar to Makefile.PL, all the perl .pm will get installed
> under /foo/bar/lib/site_perl/perl-version/perl-arch but mod_perl.so isn't aware of
> that.  So, mod_perl will refuse to start, failing to locate Apache.pm.  My first
> way around this was to PerlRequire a file before anything else and push /foo/bar/lib/site_perl/perl-version/perl-arch
> on the @INC path, but it's not very elegant.
> 
> This patches automatically makes sure the PREFIX path, if specified, is placed first in the @INC
> path.

nice work, applied.