[Madlug] Installing Perl mods in userland

Chris Dolan chris at clotho.com
Wed Aug 1 09:57:14 CDT 2001

I don't think this answers your question exactly, but here's what I've 
done in similar circumstances (no root access).

(download <perl module>.tar.gz from CPAN via HTTP)
cd ~/perl/src
tar -xzvf ~/download/<perl module>.tar.gz
cd <perl module>
perl Makefile.pl LIB=~/perl
make test
make install

and then put in the perl code I write either
    #!/usr/bin/perl -wT -I/home/me/perl
    BEGIN {unshift @INC, "/home/me/perl";}

You can accomplish the same with the PERL5LIB variable, but this is 
dependent on the user then...

Chris Dolan

Nate C-K wrote:
> Hi again,
> I forgot this in my last post:
> Has anyone tried installing a bunch of perl modules in userland (in the 
> filesystem sense of the term, if there is one; that is, in non-standard, 
> user-writable directories)? Did they find it like pulling a tooth with 
> rusty pliers and then sucking a slice of lemon? I've been trying to 
> install AxKit (an XML server module for Apache) and its related modules 
> on a FreeBSD server and we don't have root access, although we do have 
> access to the Apache config files which should ostensibly be all we 
> need. However, the config files for the perl modules don't work smoothly 
> at all, especially when it comes to finding the libraries that I've 
> installed in userland. I'm down to manually tweaking all kinds of 
> 'configure' scripts and Makefiles, and still not everything works OK. 
> Ostensibly I should be able to simply set some settings in the .cpan 
> settings file and use 'perl -MCPAN -e "install('AxKit')"' and everything 
> should be fine, provided I've set the LD_LIBRARY_PATH environment 
> variable to the directories where I've stuck the newly installed 
> libraries, but this blows up spectacularly no matter how I do it. I've 
> been downloading and installing modules with the usual incantations, one 
> by one. Hmmph. Maybe it would run more smoothly on Linux, or maybe not; 
> that's not an option for me anyway. I hope this is all clear, it's late.
> Thanks to all who can give me suggestions or at least make some wry 
> remark to lighten my mood on the whole project.
> -N
> _______________________________________________
> Madlug mailing list  -  Madlug at madisonlinux.org
> http://www.madisonlinux.org/mailman/listinfo/madlug

More information about the Madlug mailing list