Apple recently released Xcode 4 – their development IDE and toolkit, which is the easiest way to install a compiler on an OSX machine, this version does not contain the PPC assembler target. Unfortunately the version of Perl shipped with OSX was compiled with the ‘-arch ppc’ flags, this means you can not build or install any XS based CPAN modules.
The recommended solution is to stop using the system Perl. By far the easiest way to do this is to install Perlbrew (which does not use XS, so can still be installed under Xcode 4), this has the added bonus that it allows you to switch between different versions of Perl very quickly – ideal for checking your code works consistently.
Arguably this is an Apple bug, but it is not known if or when they will fix it, so it’s best to take a proactive approach. Installing Perlbrew really is easy and creates a much cleaner development environment.
Simon Wistow has posted more details.

Recent Comments