13

Just curious where CPAN installs all the Perl modules by default in OS X.

GeneQ
  • 7,485
  • 6
  • 37
  • 53

2 Answers2

23

Ask it!

iains-imac:~ bigiain$ perl -e 'print join("\n",@INC)'
/Library/Perl/Updates/5.10.0/darwin-thread-multi-2level
/Library/Perl/Updates/5.10.0
/System/Library/Perl/5.10.0/darwin-thread-multi-2level
/System/Library/Perl/5.10.0
/Library/Perl/5.10.0/darwin-thread-multi-2level
/Library/Perl/5.10.0
/Network/Library/Perl/5.10.0/darwin-thread-multi-2level
/Network/Library/Perl/5.10.0
/Network/Library/Perl
/System/Library/Perl/Extras/5.10.0/darwin-thread-multi-2level
/System/Library/Perl/Extras/5.10.

(That's a bog-stock 10.6.3 installation)

bigiain
  • 809
  • 5
  • 8
  • 1
    @bigian Awesome : using Perl to answer a Perl question. Thanks. – GeneQ Aug 19 '10 at 10:11
  • 5
    perl -V also works. Why didn't I think of that earlier. Oh, well, now it's documented here for the benefit of everyone. ;- – GeneQ Aug 19 '10 at 10:23
3

Besides system defaults, you may have configured your CPAN client to install the modules somewhere else. So have a look to your config:

$ cpan
cpan> o conf makepl_arg
cpan> o conf make_arg
cpan> o conf make_install_arg
cpan> o conf mbuildpl_arg
cpan> o conf mbuild_arg
cpan> o conf mbuild_install_arg
cpan> exit
dolmen
  • 8,126
  • 5
  • 40
  • 42