CPAN - "No rule to make target ..."

I'm trying to install perl modules using CPAN on Snow Leopard Server. Regardless of what I attempt to install, I get the error:

No rule to make target `/System/Library/Perl/5.10.0/darwin-thread-multi-2level/CORE/config.h', needed by `Makefile'. Stop.

It seems this means that I need the Perl header files. Where can I get/how can I install these files?

Thanks in advance for any assistance you can offer - I'm a newbie at using CPAN.

Mac Mini Server, Mac OS X (10.6.2)

Posted on Jan 29, 2010 10:54 AM

Reply
6 replies

Jan 29, 2010 7:40 PM in response to ericmeyers

I don't have that file (config.h) at that path on mine.

I installed the XCode Tools earlier - but, for some reason the UNIX Development Support option is dimmed, and I can't select it. I haven't found any information about running XCode Tools on a server, so that may be expected behavior.

I did go to the Package directory and manually install most of the pkg's there. That got the Make command working, but apparently still no Perl header files. Maybe someone can tell me which .pkg file(s) make up the UNIX Development Support option...?

Jan 30, 2010 6:54 AM in response to lisfolks

lisfolks wrote:
Oh, and is there a particular order in which the .pkg files should be installed?


You shouldn't pick and choose anything in Xcode. Just install it all with the default options.

Unfortunately, I don't think I can help much. I use Perl mostly on Linux.

Also, you are using Snow Leopard Server. Perhaps Perl is installed in a different location. That seems unlikely, though. What directories do you have /System/Library/Perl? If your Perl install is incorrect, Xcode isn't going to help. The files you are missing are part of the OS install, not Xcode.

Jan 30, 2010 4:36 PM in response to ericmeyers

Aha! I read the info more carefully at the link you provided, Eric. I made the same mistake the poster there did - wrong version of XCode Tools for Snow Leopard. I uninstalled the XCode Tools 3.1.4; downloaded and installed the 3.2 version; and now all is working fine with CPAN. Thanks!

In answer to the last post, when I installed the correct version, all the options were selected by default as you suggested they should be.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

CPAN - "No rule to make target ..."

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.