Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

How am I supposed to deal with .tar files with OS X Lion? I'm trying to install Ruby Version Manager, but Lion is throwing a fit about not being able to expand the tar file. This isn't the first time this has happened either.

Any tar command gives me this error:

Launch of "tar" failed: the PowerPC architecture is no longer supported.

Any help is greatly appreciated.

Update:

which tar

outputs

/usr/bin/tar

share|improve this question
1  
What's the output if you type which tar in the Terminal? –  michaelmichael Dec 17 '11 at 0:34
    
What happens if you try to unpack the file using Archive Utility instead of $ tar? –  Nathan Greenstein Dec 17 '11 at 0:39
add comment

3 Answers

up vote 7 down vote accepted

tar is installed as part of the system utilities, the only way it can be still an old version is if you upgraded your OS in place since before Intel days, or if you have an old version of tar sitting in your PATH that is being invoked before the system one is.

First, run which tar in shell. If it says anything other than /usr/bin/tar, it's not the system-native version of tar, and you should just remove it because it's not working anyway.

If it does say /usr/bin/tar, try running lipo -info /usr/bin/tar. The output should look something like

$ lipo -info /usr/bin/tar
Architectures in the fat file: /usr/bin/tar are: x86_64 i386 ppc7400 

If the architecture list does not include x86_64 and i386, then you definitely have old versions of system utilities which are not compatible with Lion and should be reinstalled. Probably the easiest thing to do at that point is to run a full backup of the system, and do a clean reinstall, because this situation should never occur and if it is happening, there's no telling what other system utilities are broken.

share|improve this answer
    
lipo command outputs: Non-fat file: /usr/bin/tar is architecture: ppc I'm confused as to why I should have to reinstall anything though. I bought this laptop in September and it came running Lion. Why would the anything on it be incompatible? –  Alex Dec 17 '11 at 0:45
2  
The standard Lion install of /usr/bin/tar includes x86_64 and i386 architectures (no ppc at all); it's most like something you installed has overwritten this with an inappropriate version. Exactly what would've done this I have no idea... –  Gordon Davisson Dec 17 '11 at 1:35
add comment

I accidentally installed an old version of Xcode, and this caused the same problem for me.

share|improve this answer
add comment

I had this same problem. In usr/bin I found tar, gnutar, and bsdtar. Calls to tar or gnutar died with the PowerPC complaint, bsdtar worked. I renamed tar to badtar, renamed gnutar to badgnutar, renamed bsdtar to tar, and Viola! No more problems!

share|improve this answer
1  
Which works well as long as there are no conflicting options between standard tar and BSD tar. –  patrix Sep 20 '12 at 21:02
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.