For Programmers: Free Programming Magazines  


Home > Archive > PERL Modules > February 2007 > Installing Perl modules (in a multi-arch hierarchy)









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Installing Perl modules (in a multi-arch hierarchy)
Vincent Lefevre

2007-02-15, 9:58 pm

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 <vincent@vinc17.org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)
Sisyphus

2007-02-17, 6:58 pm


"Vincent Lefevre" <vincent+news@vinc17.org> 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


Vincent Lefevre

2007-02-19, 6:58 pm

In article <45d70b8b$0$9776$afc38c87@news.optusnet.com.au>,
Sisyphus <sisyphus1@nomail.afraid.com> 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 <vincent@vinc17.org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com