Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to install a perl module that I manually downloaded from CPAN, but am encountering difficulties.

$perl Makefile.PL 
Welcome to JSON (v.2.53)
If you install JSON::XS v.2.27, it makes JSON faster.

 ************************** CAUTION **************************
 * This is 'JSON version 2' and there are many differences   *
 * to version 1.xx                                           *
 * Please check your applications useing old version.        *

Writing Makefile for JSON
make: *** No rule to make target `/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/config.h', needed by `Makefile'.  Stop.

Here's someone with the same problem, but I couldn't get his solution to work for me.

I have Xcode installed - and the Command Line Tools package. Entering 'which make' outputs:

$which make

Which perl outputs:

$which perl

What am I doing incorrectly? Is this an issue with Perl?

share|improve this question
Works no problem for me on 10.8 with developer tools installed. Note the problem is not with make—it is executing successfully, but there is a problem with the generated Makefile. Could you try upgrading Xcode and/or Mac OS X? – andrew.n Nov 12 '12 at 19:36
@andrew.n Upgrading Xcode might not be feasible for me - I'm using a company machine and they control which versions of software we get. My Xcode is Version 4.4, though I see 4.5 is out. Perhaps it has something to do with the perl file it claims to depend on? Then again, I followed the steps of another person having the same problem to no avail. – Jiman Nov 12 '12 at 22:25

You must log in to answer this question.

Browse other questions tagged .