Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

cpan installing modules outside of the @INC path

by macrobat (Beadle)
on Apr 27, 2007 at 18:37 UTC ( [id://612438]=perlquestion: print w/replies, xml ) Need Help??

macrobat has asked for the wisdom of the Perl Monks concerning the following question:

Folks,

Somehow, when I run cpan -i Some::Module, (or run cpan interactively, for that matter), it installs the module somewhere outside my @INC path. The first time it did that, I was really confused, but I found I could move the module (and the docs) to the right places manually.

That kinda thwarts the whole point of automating the install, though.

Anyone know where you change the setting where cpan installs modules?

  • Comment on cpan installing modules outside of the @INC path

Replies are listed 'Best First'.
Re: cpan installing modules outside of the @INC path
by naikonta (Curate) on Apr 27, 2007 at 18:42 UTC
    Check your makepl_arg config from cpan shell, macrobat.
    $ cpan cpan>o conf makepl_arg
    If it contains something, that's why.

    Open source softwares? Share and enjoy. Make profit from them if you can. Yet, share and enjoy!

      Alas, that key is empty.

      Still, if I install from the cpan shell, it goes somewhere outside my @INC path. If I then go into the ~/.cpan/build/Some-Module directory and do a

      perl Makefile.PL make make test make install
      --it goes to the right place.
        Just where does cpan install the module?

        Open source softwares? Share and enjoy. Make profit from them if you can. Yet, share and enjoy!

Re: cpan installing modules outside of the @INC path
by shigetsu (Hermit) on Apr 27, 2007 at 19:07 UTC

    In case you're wondering what these options (queried with o conf 'option') mean: Config Variables

    Concerning the detailed usage, above link also has the specifics.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2024-04-18 23:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found