Mac-Carbon Modules and Mac OS X 10.6

| | Comments (0)

The default perl for Mac OS X 10.6 runs in 64-bit mode by default. The problem for Mac-Carbon is that significant portions of the Carbon API are unavailable to 64-bit programs on Mac OS X.

Perhaps a subset of the API could be made available to a 64-bit perl (for more information see Apple's "64-Bit Guide for Carbon Developers"), and might in the future, but it's simpler at this point to just run perl in 32-bit mode.

There's a few ways to do this. Most obviously, you could simply build a 32-bit perl. I always build my own perl, and I just compile it for 32 bits.

There's also two methods mentioned in L under Mac OS X 10.6: you can set an environment variable, or set a system preference. For the environment use:

VERSIONER_PERL_PREFER_32_BIT=yes

And for the system preference, execute this line in your terminal:

defaults write com.apple.versioner.perl Prefer-32-Bit -bool yes

use.perl.orgslashdot.org

Leave a comment

<pudge/*> (pronounced "PudgeGlob") is thousands of posts over many years by Pudge.

"It is the common fate of the indolent to see their rights become a prey to the active. The condition upon which God hath given liberty to man is eternal vigilance; which condition if he break, servitude is at once the consequence of his crime and the punishment of his guilt."

About this Entry

This page contains a single entry by pudge published on September 7, 2009 10:54 PM.

Happy Labor Day was the previous entry in this site.

Bill Delahunt Sticks His Foot In It is the next entry in this site.

Find recent content on the main index or look in the archives to find all content.