Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^6: Installing Modules Without Root

by listanand (Sexton)
on May 19, 2010 at 20:08 UTC ( [id://840780]=note: print w/replies, xml ) Need Help??


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

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

Replies are listed 'Best First'.
Re^7: Installing Modules Without Root
by Your Mother (Archbishop) on May 19, 2010 at 20:56 UTC
    "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.

      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

      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'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!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://840780]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (1)
As of 2024-04-25 00:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found