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

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==

Replies are listed 'Best First'.
Re^6: Installing Modules Without Root
by listanand (Sexton) on May 19, 2010 at 20:08 UTC
    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.

        Another interesting thing. When I do "perl Makefile.PL --bootstrap" , the first few lines are as follow:

        ==Error==

        Attempting to create file /home/andy/perl5/.modulebuildrc

        ExtUtils::MakeMaker version 6.31 required--this is only version 6.30_01.

        BEGIN failed--compilation aborted.

        ExtUtils::Install version 1.43 required--this is only version 1.33.

        BEGIN failed--compilation aborted.

        CPAN version 1.82 required--this is only version 1.7602.

        BEGIN failed--compilation aborted.

        ==End=

        I tried it again, and result is the same . "env | grep -i perl" does not shown *any* environment variables. The PERL5LIB was showing up, but I unset it using "unset PERL5LIB". And also, none of these directories actually exist.

        Thanks again.

        Andy