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

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

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!

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

        "rehash" command is shell dependent. Some shells, e.g. t?csh, zsh 4 & possibly ksh93, require rehash to be run so that commands installed in $PATH after starting the current shell could be found & run. Some shells have options which would obviate the need to run rehash; bash might be an example (confirm yourself).
Re^10: Installing Modules Without Root
by listanand (Sexton) on May 20, 2010 at 16:42 UTC
    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..