Ovid has asked for the wisdom of the Perl Monks concerning the following question:

Quite often I find myself in the position of having a tarball that I'd like to install with CPAN.pm. There are two reasons I'd like to do this:

In other words, I'd like to do this:

$ perl -MCPAN -e shell CPAN: File::HomeDir loaded ok (v0.65) cpan shell -- CPAN exploration and modules installation (v1.9102) ReadLine support enabled cpan[1]> install ./Highly-Experimental-0.01.tgz

I've looked for a hack that would let me do this, but no luck. Is there a way to do this that I just haven't seen in the docs?

Cheers,
Ovid

New address of my CGI Course.

Replies are listed 'Best First'.
Re: Installing tarballs with CPAN.pm
by ForgotPasswordAgain (Vicar) on Dec 19, 2007 at 14:52 UTC
    I see a section "Integrating local directories" that says cpan . should work. I didn't try it myself, though.

      Sweet! Looks like I still have some configuration issues, but that worked just fine :) Thank you.

      Cheers,
      Ovid

      New address of my CGI Course.

Re: Installing tarballs with CPAN.pm
by polettix (Vicar) on Dec 19, 2007 at 14:54 UTC
    At a raw, raw, raw level, you could create your CPAN::Mini-mirror and put your module under "your" directory in the mirror. Then, unshift the mirror with o conf urllist unshift /path/to/cpan-mini and install the tarball as usual with install Highly::Experimental.

    I know, it's a lot of work... at least for the first time. In any case, having a CPAN::Mini mirror is very, very handy.

    Hey! Up to Dec 16, 2007 I was named frodo72, take note of the change! Flavio
    perl -ple'$_=reverse' <<<ti.xittelop@oivalf

    Io ho capito... ma tu che hai detto?