10.3: Install missing Perl headers

Nov 03, '03 09:42:00AM

Contributed by: Aarden

After upgrading to Panther, I discovered that several Perl header files that are essential for compiling Perl XS modules were missing from the distribution. I worked around this problem by compiling Perl with threads from scratch, copying its header files to the Panther distribution, and modifying the config.h file to match Panther's installation paths. If you need these headers and want to save yourself the effort, you can download an archive of the header files here: 929KB download.

Then, if you saved the archive to the Desktop, you can install the files by typing something like:

 % cd /System/Library/Perl/5.8.1/darwin-thread-multi-2level/CORE
 % sudo tar -xzvf ~/Desktop/CORE.tgz
or, if StuffIt unpacked the archive for you, the second command would be:
 % sudo cp ~/Desktop/CORE .
I'm sure someone will come up with a more elegant solution, or Apple may fix this in the next update.

Comments (6)


Mac OS X Hints
http://hints.macworld.com/article.php?story=2003103011085511