Bad CPU Type in Executable

I have Mountain Lion. I'm trying to install the latest stable version Ruby from get.rvm.io, and I keep getting this error. How do I fix this?


[06:52 AM] ~ 4 $ curl -L https://get.rvm.io | bash -s stable --ruby

% Total % Received % Xferd Average Speed Time Time Time Current

Dload Upload Total Spent Left Speed

100 185 100 185 0 0 165 0 0:00:01 0:00:01 --:--:-- 319

100 9979 100 9979 0 0 5848 0 0:00:01 0:00:01 --:--:-- 45986

bash: line 30: /sw/bin/gtar: Bad CPU type in executable

Please read and follow further instructions.

Press ENTER to continue.

Downloading RVM from wayneeseguin branch stable

% Total % Received % Xferd Average Speed Time Time Time Current

Dload Upload Total Spent Left Speed

100 125 100 125 0 0 155 0 --:--:-- --:--:-- --:--:-- 287

100 1045k 100 1045k 0 0 525k 0 0:00:01 0:00:01 --:--:-- 2588k

bash: line 161: /sw/bin/gtar: Bad CPU type in executable

Could not extract RVM sources.

[

MacBook Pro, OS X Mountain Lion

Posted on Aug 12, 2012 4:15 AM

Reply
1 reply

Aug 15, 2012 6:17 AM in response to Lola Lee

I am receiving a similar error when I run a small, custom application that I need for my work. It has worked for many years, but when I had to make the jump from Snow Leopard to Mountain Lion it stopped working. I am receiving this error:


"/Users/xxxxxx/bin/scale: Bad CPU type in executable"


Does anyone think the app needs to be recompiled under Xcode for OX X 10.8? Or is this a possible Mountain Lion bug?


Thanks.


Lance

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Bad CPU Type in Executable

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.