SPUG: non-Root CPAN Config; easier way?

SPUG-list-owner tim at consultix-inc.com
Fri Jan 3 19:08:11 CST 2003


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




More information about the spug-list mailing list