SPUG: non-Root CPAN Config; easier way?
Thane Williams
thane at fastmail.fm
Fri Jan 3 20:32:55 CST 2003
Since I'm not a stick-riddle lunatic I'll put in a word:
I don't use the CPAN shell, and all I've had to do is
perl Makefile.PL PREFIX=~/lib/perl
make
make install
This can vary. One I had to:
perl Makefile.PL INSTALLSITELIB=~/lib/perl \
INSTALLMAN3DIR=~/lib/perl/man/man3
make
make install
Still seems easier than what you were doing. Of course, your programs
have to have:
use lib '/home/thane/lib/perl';
(Assuming you're named Thane, which has always been the case for me.)
On Fri, 3 Jan 2003 17:08:11 -0800, "SPUG-list-owner"
<tim at consultix-inc.com> said:
> Beloved SPUGsters (*except* for you Stick-Riddle lunatics 8-} ),
>
> I guess I've led a charmed life, because I never had to install
> any CPAN modules as a non-root user before. And I can't believe
> how inconvenient the setup is, which probably means I'm doing it
> the hard way:
>
> First, the only way I've found to get CPAN to ignore the system-wide
> [c]onfig file, if it's already there, and prompt me to fill in my
> own preferences is by first creating in the [c]onfig file
> the empty anonymous hash (just creating the file doesn't do it):
>
> !# echo '$CPAN::Config={};' > ~/.cpan/CPAN/MyConfig.pm
>
> Then, after doing
>
> !# perl -MCPAN -e shell,
>
> I have to do the following to set up the appropriate variables (although
> perhaps I could have echo'd them up above as hash initializers, I didn't
> try):
>
> o conf makepl_arg "LIB=~/class/lib \
> INSTALLMAN1DIR=~/class/man/man1 \
> INSTALLMAN3DIR=~/class/man/man3"
> o conf commit
>
> Is this as good as it gets? Or is there an easier way?
>
> -Tim
> *----------------------------------------------------------------------------*
> | Tim Maher, CEO, CONSULTIX (206) 781-UNIX; (866) DOC-PERL; (866)
> DOC-LINUX |
> | Ph.D. & JAWCAR ("Just Another White Camel Award Recipient")
> |
> | tim at consultix-inc.com teachmeunix.com teachmeperl.com
> teachmelinux.net |
> *-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*
> | MAHER CLASSES: Minimal Perl: 1/27; UNIX: 1/28; Perl: 2/10; Modules:
> 2/13; |
> | DAMIAN CLASSES: Munging: 1/13; Regexes: 1/15; BioInfo: 1/15; OOP: 1/17;
> |
> *----------------------------------------------------------------------------*
>
> ----- End forwarded message -----
>
> --
> -Tim
> *----------------------------------------------------------------------------*
> | Tim Maher, CEO, CONSULTIX (206) 781-UNIX; (866) DOC-PERL; (866)
> DOC-LINUX |
> | Ph.D. & JAWCAR ("Just Another White Camel Award Recipient")
> |
> | tim at consultix-inc.com teachmeunix.com teachmeperl.com
> teachmelinux.net |
> *-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*
> | MAHER CLASSES: Minimal Perl: 1/27; UNIX: 1/28; Perl: 2/10; Modules:
> 2/13; |
> | DAMIAN CLASSES: Munging: 1/13; Regexes: 1/15; BioInfo: 1/15; OOP: 1/17;
> |
> *----------------------------------------------------------------------------*
>
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> -
> POST TO: spug-list at pm.org PROBLEMS: owner-spug-list at pm.org
> Subscriptions; Email to majordomo at pm.org: ACTION LIST EMAIL
> Replace ACTION by subscribe or unsubscribe, EMAIL by your Email-address
> For daily traffic, use spug-list for LIST ; for weekly,
> spug-list-digest
> Seattle Perl Users Group (SPUG) Home Page: http://seattleperl.org
>
>
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
POST TO: spug-list at pm.org PROBLEMS: owner-spug-list at pm.org
Subscriptions; Email to majordomo at pm.org: ACTION LIST EMAIL
Replace ACTION by subscribe or unsubscribe, EMAIL by your Email-address
For daily traffic, use spug-list for LIST ; for weekly, spug-list-digest
Seattle Perl Users Group (SPUG) Home Page: http://seattleperl.org
More information about the spug-list
mailing list