Bad CPU type in executable

Posted by jallen@rsandk.com on 2012-02-29 06:25

Beginner question on running ActivePerl on a PowerMac G5.

I downloaded ActivePerl 5.14.2 and installed it on my OS X 10.5.8 PowerPC mac.

I wanted to ask why I get the error: Bad CPU type in executable

When I type: usr/local/Activeperl-5.14/bin/perl: Bad CPU type in executable

Thanks!

grahams
ActiveState Staff
Wed, 2012-03-14 11:04

The 5.14 binaries are not compatible with PowerPC, or with OS X 10.5.

5.12, and older versions, are Universal x86/PPC, so those should work for you.

griller | Sun, 2013-11-17 20:13

I just installed ActivePerl 5.18.1 for the Mac, which lists as a requirement OSX 10.6. I am using a current version of 10.6.8, but still get this message.
Hardware info:
Processor Name: Intel Core Duo
Processor Speed: 2.16 GHz
Number Of Processors: 1
Total Number Of Cores: 2
L2 Cache: 2 MB
Memory: 2 GB
Bus Speed: 667 MHz

Is there something I can do to get this working?

Edit:
I installed 5.16.3 and don't get this error message.

grahams
ActiveState Staff
Fri, 2014-01-03 12:20

ActivePerl 5.18 for OS X is a 64-bit only binary. Lion and newer will boot in 64-bit by default, but SnowLeopard boots in 32-bit by default.

If you are running in 32-bit mode, you will need to use ActivePerl 5.16 or older, which is a dual 32/64 bit x86 binary.