Installing Perl modules (in a multi-arch hierarchy)

Installing Perl modules (in a multi-arch hierarchy)

am 16.02.2007 03:17:19 von Vincent Lefevre

Hi,

Where can I find documentation explaining how to install a Perl module?
More precisely, it must deal with installation in the user's home
directory, with the support of several architectures (e.g. the home
directory is under NFS).

I've looked at the perlmodinstall(1) man page, but if I follow this
way, then architecture-dependent files (.so) get installed in a common
directory ($HOME/lib/perl/5.8.8/auto/Math/MPFR in my case).

Note: I don't want to use CPAN since I sometimes need to patch modules
and with CPAN, I need to modify the MyConfig.pm so that it works
everywhere (I recall that my home directory is under NFS, and there
are many different machines on the network).

I currently do:

perl Makefile.PL PREFIX=$HOME/$ARCHTYPE

and in $HOME/$ARCHTYPE, I've created symbolic links to the
architecture-independent directories (e.g. man and share).

--
Vincent Lefèvre - Web:
100% accessible validated (X)HTML - Blog:
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)

Re: Installing Perl modules (in a multi-arch hierarchy)

am 17.02.2007 15:06:57 von Sisyphus

"Vincent Lefevre" wrote in message
news:20070216020755$4392@prunille.vinc17.org...
> Hi,
>
> Where can I find documentation explaining how to install a Perl module?
> More precisely, it must deal with installation in the user's home
> directory, with the support of several architectures (e.g. the home
> directory is under NFS).
>
> I've looked at the perlmodinstall(1) man page, but if I follow this
> way, then architecture-dependent files (.so) get installed in a common
> directory ($HOME/lib/perl/5.8.8/auto/Math/MPFR in my case).
>

Is there anything in 'perldoc ExtUtils::MakeMaker' that helps ? (I honestly
don't know whether there is or not.)

Cheers,
Rob

Re: Installing Perl modules (in a multi-arch hierarchy)

am 19.02.2007 17:08:57 von Vincent Lefevre

In article <45d70b8b$0$9776$afc38c87@news.optusnet.com.au>,
Sisyphus wrote:

> Is there anything in 'perldoc ExtUtils::MakeMaker' that helps ? (I
> honestly don't know whether there is or not.)

perl Makefile.PL PREFIX=~ LIB=~/lib/site_perl

seems to do the right thing. Thanks.

--
Vincent Lefèvre - Web:
100% accessible validated (X)HTML - Blog:
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)