in reply to Installing modules

I don't really have much of a clue about OSX but it looks like your Perl installation was incomplete. It should install this config.h file to let compiled modules know with what options your Perl was compiled. Is that the system Perl? Unfortunately, these are often quite bastardized and rendered unusable for more than running the system scripts by vendors. I don't know whether the Fink project is still a source of OSS that people use on Macs but when I last did that was where I looked for stuff like this.

Replies are listed 'Best First'.
Re^2: Installing modules
by Chuma (Scribe) on Jan 28, 2012 at 17:46 UTC
    So I need to reinstall Perl, or something?

    Okay, I've downloaded and installed the latest Activeperl. It installed happily, but "perl -v" still says the version is 5.10.0. Do I have two different versions now, or what?

      Yes, I suppose so. That just calling "perl" still finds the old version is a path problem; ActivePerl probably adds its bin directory to the end of the $PATH variable, if at all.

      To make sure you don't break any system stuff, you could make yourself a $HOME/bin directory and add that to PATH in your .bashrc, then make a softlink in there to the ActivePerl binary.

        First, install Xcode. It must be installed for perl or for ActivePerl to be able to work. You'll find it on your OSX software DVD.

        Second, to get the current perl for OSX: open your Terminal.app and enter:
        curl -L http://xrl.us/installperlosx | bash
        In addition, to help manage your perl installations, you can use Perlbrew:
        curl -kL http://install.perlbrew.pl | bash
        ...and how do I do all that?