in reply to Re^3: Installing Modules Without Root
in thread Installing Modules Without Root

That does look good but I think the advice stands. Strangely enough I just had to go through this on the weekend so I have a "better" set of tips:

Then I highly recommend installing App::cpanminus and favoring its cpanm over cpan or cpanp. It's much lighter and quicker than the others.

Replies are listed 'Best First'.
Re^5: Installing Modules Without Root
by listanand (Sexton) on May 19, 2010 at 20:03 UTC
    Thank you so much for the detailed instructions !

    But, life is not so simple :) I got as far as doing "perl Makefile.PL --bootstrap". Towards the end, I get the error below.

    By the way, don't I have to configure CPAN before running makefile.pl? When I try going to CPAN shell, and running one of the 2 selected commands below, it seems like, I will need to configure all other parameters also...

    ==Error Begin==

    You have not configured a urllist and do not allow connections to the internet to get a list of mirrors. If you wish to get a list of CPAN mirrors to pick from, use this command

    o conf init connect_to_internet_ok urllist

    If you do not wish to get a list of mirrors and would prefer to set your urllist manually, use just this command instead

    o conf init urllist

    ==Error End==

      Oh and by the way, is it "perl Makefile.PL --bootstrap" or "perl Makefile.PL --bootstrap=/my_dir"?
        "perl Makefile.PL --bootstrap"

        I cut and pasted the commands I gave (with adjustments for the ...s) so do them just that way. I didn't have to configure cpan but I'm not actually sure that's because my machine has a "special" state or because you're skipping one of the steps or something is wonky.

        It still sounds like your env has ghosts of some sort. I'd start from scratch again. It should be just a couple minutes to run it all from the top.

        Remember before running the Makefile.PL -- env | grep -i perl -- should show NO variables set. And you should get these as being non-existent:

        ls ~/.cpan # ls: /home/moo/.cpan: No such file or directory ls ~/.cpanp # ls: /home/moo/.cpanp: No such file or directory ls ~/.cpanm # ls: /home/moo/.cpanm: No such file or directory ls ~/perl5 # ls: /home/moo/perl5: No such file or directory ls ~/perl # ls: /home/moo/perl: No such file or directory

        I'll try this on one of my boxes I know causes problems tonight and report if it is indeed "correct" and amend otherwise.