Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Configuring Mac OS X to Install Perl Modules

by syphilis (Canon)
on Sep 22, 2007 at 08:07 UTC ( #640491=note: print w/ replies, xml ) Need Help??


in reply to Configuring Mac OS X to Install Perl Modules

Note: For some reason, you need a C compiler to run Makefile.pl and some other stuff

Just a minor correction to that. You don't need a C compiler to run Makefile.PL. (Admittedly, some Makefile.PL's will check that you have a working C compiler and terminate if it can't be found.) But you will need a C compiler to perform any compilations that may be needed during the 'make' phase of the build process.

Cheers,
Rob


Comment on Re: Configuring Mac OS X to Install Perl Modules
Re^2: Configuring Mac OS X to Install Perl Modules
by randyk (Parson) on Sep 22, 2007 at 14:50 UTC
    I had expected that to be true as well, but when I tried installing a pure Perl module on a Mac OS X, I found that with the default installation the error
    make: *** No rule to make target `/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE/config.h', + needed by `Makefile'. Stop.
    arose. This was fixed by installing the Xcode package, which contains the C compiler.

      Xcode contains more than just a compiler. In fact, if you just installed GCC, it wouldn't work.

      The actual item needed is the 'BSD Subsystem', which contains the necessary header files.

      Is that the output from running the Makefile.PL ?

      It looks to me more like something you would get from running 'make' ... when the build of perl doesn't include config.h (as is often the case with non-devel perl installations on nix-like systems).

      But I don't have Mac OS X, so I should really just shut up. (Besides, I think I might have shifted from trying to make minor corrections, to trying to split hairs :-)

      Cheers,
      Rob

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://640491]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (15)
As of 2015-07-06 15:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (77 votes), past polls