http://qs321.pair.com?node_id=612438

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.