I'm running Mountain Lion, and I'm trying to install Ruby; however, I get "bad CPU in executable" error. Not sure how to fix this . . . ideas? Sorry for the bad formatting - "code" doesn't really format this Terminal output properly.
[06:51 AM] ~ 2 $ curl -L https://get.rvm.io | bash -s stable
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 185 100 185 0 0 293 0 --:--:-- --:--:-- --:--:-- 345
100 9979 100 9979 0 0 11662 0 --:--:-- --:--:-- --:--:-- 11662
bash: line 30: /sw/bin/gtar: Bad CPU type in executable
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 502 0 --:--:-- --:--:-- --:--:-- 531
100 1045k 100 1045k 0 0 925k 0 0:00:01 0:00:01 --:--:-- 1543k
bash: line 161: /sw/bin/gtar: Bad CPU type in executable
/sw/bin/gtar. Did you recently upgrade? Do you have an old fink distribution installed? The script you are running is findinggtarbut the call fails. – ephsmith Aug 12 '12 at 14:33rvm_tar_commandexplicitly before you run the script--i.e.export rvm_tar_command=/usr/bin/tar. – ephsmith Aug 12 '12 at 14:34