Hi There,

I am trying to install some Perl modules from CPAN. Upon not being able to install anything (even running 'install Data::Dumper', something that's installed installed and working, throws errors), I found this line in the log for all modules I was trying to install:

Can't exec "make": No such file or directory at /System/Library/Perl/5.10.0/CPAN.pm line 7698.

That kinda told me that the problem is in make. Either make is not installed or broken (can't say which). I also tried to remove .cpan folder in /Users/my_name/ area, but it didn't change anything. Then I checked if the path to Perl or cpan is set properly. I tried the:

'which perl' returned /usr/bin/perl

'which cpan' returned /usr/bin/cpan

perl -MConfig -e 'print $Config{perlpath}, "\n"' returned /usr/bin/perl

I check in the /System/Library/Perl area, and found two folders: 5.8.9 and 5.10.0 . I ran 'perl -v' and it gave this "This is perl, v5.10.0 built for darwin-thread-multi-2level"

So my question is that how do I install the "make" so that I am able to install modules directly from CPAN and don't have to install them manually?

Appreciate your help.

In reply to Make not working in CPAN shell on OSX by Anshu

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.