Click here to get back home

Installing Perl modules (in a multi-arch hierarchy)

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Installing Perl modules (in a multi-arch hierarchy) Vincent Lefevre 02-15-2007
Posted by Vincent Lefevre on February 15, 2007, 9:17 pm
Please log in for more thread options


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).

--
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)

Posted by Sisyphus on February 17, 2007, 9:06 am
Please log in for more thread options



> 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



Posted by Vincent Lefevre on February 19, 2007, 11:08 am
Please log in for more thread options



> 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.

--
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)

Similar ThreadsPosted
installing perl modules and ports September 16, 2004, 12:36 pm
Problem installing certain PERL modules October 15, 2004, 4:47 am
Issues Installing CPAN Modules on Win NT - Activestate Perl 5.61 November 19, 2004, 6:52 am
installing modules? September 29, 2005, 1:52 pm
Installing modules August 5, 2005, 8:32 pm
Problem with installing modules November 24, 2006, 6:15 pm
Newbie: Installing Modules February 22, 2007, 5:42 am
Errors when Installing Modules June 23, 2008, 6:09 pm
Modules not installing to standard LIB directory November 17, 2005, 8:14 am
Installing modules locally as a non root May 23, 2005, 5:21 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap