http://www.perlmonks.org?node_id=201222


in reply to To install a module...

For me, it depends.

Most of the time, I use the CPAN shell. Especially for a module that I'll only want on my machine for a limited amount of time. I've got my environment all set up with a ~/.cpan/CPAN/MyConfig.pm to build and install modules in a ~/.perl subdirectory, and corresponding environment variables so that my one-off scripts use it just fine. I don't even need to be root. Cool.

Sometimes the module I want is already packaged in the Debian distribution. So, I apt-get it instead. Even cooler.

Sometimes the module I want isn't packaged by Debian, but I need it enough that I want to install it properly so that all users of my system will have access to it. For that, I make a .deb out of it myself with dh-make-perl. Very cool.

What it all comes down to is, I've got way too much free-time.

--jwest


-><- -><- -><- -><- -><-
All things are Perfect
    To every last Flaw
    And bound in accord
         With Eris's Law
 - HBT; The Book of Advice, 1:7

Replies are listed 'Best First'.
Re: Re: To install a module...
by theorbtwo (Prior) on Sep 28, 2002 at 07:54 UTC

    Bah. I just got finished writing a terrible hack of somthing like this. (Mine does do some things that dh-make-perl doesn't do, but nothing major.) Mine is ugly as all hell (see my scratchpad for a somwhat out-of-date copy of the code iff you're reading this fairly close to when I wrote it), though.


    Warning: Unless otherwise stated, code is untested. Do not use without understanding. Code is posted in the hopes it is useful, but without warranty. All copyrights are relinquished into the public domain unless otherwise stated. I am not an angel. I am capable of error, and err on a fairly regular basis. If I made a mistake, please let me know (such as by replying to this node).