On Sat, Apr 12, 2003 at 05:33:02PM +0100, Ed Avis wrote:
> I downloaded ExtUtils-MakeMaker-6.10_03.tar.gz, unpacked it and did
> 'perl Makefile.PL PREFIX=whatever && make install'.  It installed
> files as $PREFIX/5.8.0/ExtUtils/MakeMaker.pm and similar locations.
> 
> However, other, fairly standard modules - pick URI-1.23.tar.gz as a
> concrete example - will install as $PREFIX/lib/perl5/site_perl/URI.pm.
> 
> So why is it that most modules assume a lib/perl5 directory underneath
> $PREFIX, and probably site_perl under that, while MakeMaker wants to
> create its 5.8.0 directory directly under $PREFIX?
> 
> (The version of MakeMaker I used to bootstrap was the 6.03 that comes
> with perl 5.8.0.  When installing the URI module it chooses the same

MakeMaker does not need a previous version of itself installed, it 
installs itself.  There's no bootstrapping off an older version.

> place whether installed with 6.03 or 6.10.)

First, MakeMaker installs itself into your core perl directory, for stuff
that comes with Perl itself.  URI uses site perl directories, for stuff that
doesn't come with Perl.  Different set of directories sometimes in very
different places.  

When a PREFIX becomes involved, MakeMaker has to guess what subdirectory
to attach to the PREFIX and it tries to do this based on your existing
installation.  Its a heuristic.  Sometimes it can't figure it out and
just puts things in a default layout.

Anyhow, in order to figure out if MakeMaker is doing something wrong
or if you just have an odd Perl configuration, <record type=broken>I'll have 
to see your Makefile which should be included with any bug report</record>.


-- 
Milk may build strong bones, but adhesives are cement for the mind.
        http://www.goats.com/archive/990103.html

Reply via email to