Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

10.3: Install missing Perl headers UNIX
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.
    •    
  • Currently 2.43 / 5
  You rated: 4 / 5 (7 votes cast)
 
[12,436 views]  

10.3: Install missing Perl headers | 6 comments | Create New Account
Click here to return to the '10.3: Install missing Perl headers' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.3: Install missing Perl headers
Authored by: spdemac on Nov 03, '03 11:03:08AM

Just install the Developer Tools and all the headers will be available.



[ Reply to This | # ]
10.3: Install missing Perl headers
Authored by: cynikal on Nov 03, '03 03:45:09PM

Speaking of panther oddities.. has anyone tried the perldoc command under panther?

I know i have the developer tools installed, even though that shouldn't be required.. but i can't get perldoc to work AT ALL.. is this a panther problem or a 5.8.x problem?

$ perldoc
Usage: perldoc [-h] [-V] [-r] [-i] [-v] [-t] [-u] [-m] [-n nroffer_program] [-l] [-T] [-d output_filename] [-o output_format] [-M FormatterModuleNameToUse] [-w formatter_option:option_value] [-F] [-X] PageName|ModuleName|ProgramName
perldoc -f PerlFunc
perldoc -q FAQKeywords

The -h option prints more help. Also try "perldoc perldoc" to get
acquainted with the system. [Perldoc v3.09]

$ perldoc perldoc
No documentation found for "perldoc".

$ perldoc -f print
No documentation found for "perlfunc".

$ perldoc -q print
No documentation found for "perlfaq1".
No documentation found for "perlfaq2".
No documentation found for "perlfaq3".
No documentation found for "perlfaq4".
No documentation found for "perlfaq5".
No documentation found for "perlfaq6".
No documentation found for "perlfaq7".
No documentation found for "perlfaq8".
No documentation found for "perlfaq9".

AHHH!! it was great having a local perl reference on my powerbook under Jaguar.. now it's gone :(



[ Reply to This | # ]
Safari automatically unzipping?
Authored by: thinkyhead on Nov 03, '03 05:09:57PM
When I downloaded this file Safari began to download it in a normal-seeming fashion. However the name of the file in the Downloads window was CORE.tar instead of CORE.tgz. It appears that Safari is making use of the new system-wide ZIP engine Apple added to Panther.

Can anyone else confirm this behavior?

---
|
| slur was here
|

[ Reply to This | # ]

10.3: Install missing Perl headers
Authored by: rickg17 on Nov 03, '03 09:21:08PM

spdemac: Yes, but if you update from Jaguar + dev tools, you lose the headers. Annoying to have to reinstall the dev tools to get something you just had. Plus, you should not have to install gigabytes of tools you may not want to get headers you used to have by default.

Also, please note that the command

[code]sudo cp ~/Desktop/CORE .[/code]

has a trailing period after CORE that tells cp to copy the files in ~/Desktop/CORE to the current location.



[ Reply to This | # ]
10.3: Install missing Perl headers
Authored by: schwern on Nov 27, '03 03:57:13AM

You can't install *any* Perl modules without the CORE headers, even those that don't include XS. You have to upgrade ExtUtils::MakeMaker from CPAN to 6.18 or higher to be able to install pure Perl modules without the Perl CORE headers.

In order to get the Perl CORE headers in 10.3 you need to install the optional BSD SDK bit of Dev Tools. Its unfortunate that you need to install this rather large package just to get at a handful of C header files.

Apple made a somewhat unfortunate decision to move the Perl CORE headers from the DevSDK in 10.2, which always gets installed when you install DevTools, to the BSDSDK in 10.3, which is optional. This move was noticed too late to convince Apple to move it back. :(



[ Reply to This | # ]
10.3: Install missing Perl headers [Works on 10.3.2]
Authored by: robertbrook on Dec 31, '03 07:37:57AM

Tip worked for me on 10.3.2. Thanks!

( I used Safari to download and unstuff, then dragged the contents of the CORE folder manually, saying yes to an 'Authenticate' button. All seems well. )



[ Reply to This | # ]