Anshu has asked for the wisdom of the Perl Monks concerning the following question:
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Make not working in CPAN shell on OSX
by Anonymous Monk on Jun 10, 2011 at 05:09 UTC | |
by Anshu (Initiate) on Jun 10, 2011 at 08:12 UTC |