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

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=

Replies are listed 'Best First'.
Re^9: Installing Modules Without Root
by Your Mother (Archbishop) on May 20, 2010 at 03:06 UTC

    I'll be damned… apparently this is completely kosher even though it complains like mad-

    • rm -rf ~/.cpan ; perl Makefile.PL --bootstrap
    • Say "yes" if prompted by the cpan shell for configure automatically
    • make install

    So, just do that (maybe more than once, I did it several times before I discovered it was working) and the make install "works." You'll know it worked when this works–

    perl -I~/perl5/lib -Mlocal::lib

    And when it does, put it into your shell .rc file and source it or rehash.

    My "install" was terribly noisy and definitely appeared to fail but I had no trouble installing App::cpanminus and other modules after setting the shell stuff.

    Good luck!

      OK, one more piece of information as I continue doing what you said.

      I actually need to install the perl modules on a common data share (huge hard disk) connected to a network of computers. I can only access the hard disk share after logging into one of the computers (obviously) but the deal is that all the computers have very little disk space by themselves - so any processing/build/install that the cpan/make file does, have to be using the space on the share. Hence I use --bootstrap=/my_dir (where my_dir is a directory on a share).

      So far though I am not seeing any error that says that it is because of insufficient disk space, but I know that this is possible based on my experience with installing other software.

      Anyway, back to work !

      Many thanks again for your help !

        Oh, and just to make things more interesting, my system does not have "rehash".

        Yawn.. Very tired and sleepy. Will sign back on in a few hours. What a sad end to the day !!

      Well no luck even after ~20 tries. After I do "perl Makefile.PL --bootstrap", I get the same error. After this, when I do "make install", I just the following one line error.

      Error: "make: *** No rule to make target `install'. Stop."

      Is there a way at all that I could have the scripts do everything on the share (right from creating .cpan to perl5 directories). I tried to pass the directory on share as a parameter to the bootstrap, but that did not work either. It still created .cpan and perl5 directories in my home directory. I get the same errors as before..