Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > tar seems to be missing

tar seems to be missing
Thread Tools
Fresh-Faced Recruit
Join Date: May 2007
Status: Offline
Reply With Quote
Sep 11, 2007, 01:41 PM
 
I used to be able to decompress tar files from command line with
gnutar -xzf /path/to/file

Now I seem to be getting an error about the command being missing.

I tried to build tar 1.18 from source with these commands
cd tar-1.18
./configure
make
sudo make install
But that didn't help at all, it still says "gnutar" and "tar" are missing.

Code:
-bash: tar: command not found -bash: gnutar: command not found
Anybody have any ideas how I can fix this? Is it possible to pull this from the mac os x 10.4 install cds? Or what else can I do to get this back?
I can no longer decompress the backups I get from my cpanel, As the only way I could find to correctly decompress them is command line as stuffit doesn't like to do this correctly.
     
Administrator
Join Date: May 2000
Location: California
Status: Offline
Reply With Quote
Sep 11, 2007, 02:33 PM
 
They're both in /usr/bin/ on my system. 10.4.10

That's not a folder you usually delete stuff from. Check to see if they are still there, or if any of the other commands in that folder "can't be found" either? If the commands are there, but don't work, then your unix prefs are damaged, omitting the /usr/bin/ folder from command searches.

If commands are missing from that folder, you likely had some disk damage, which got repaired on boot. Minus some files here and there. An archive & install would be best in that case, because there is no telling what other OS files could be missing.
     
Fresh-Faced Recruit
Join Date: May 2007
Status: Offline
Reply With Quote
Sep 11, 2007, 02:44 PM
 
I don't think I would of deleted anything out of there. Especially since it would require Admin privileges to do this.
Not to happy about having to do archive and install as I do have many custom packages I have compiled and would need to redo.

I was able to download and compile bzip just fine and can get it to work. But tar seems to have an issue.
Any ideas if There is a way to remove tar completely? It may be possible some files are messed up and its not replacing them.
     
Administrator
Join Date: May 2000
Location: California
Status: Offline
Reply With Quote
Sep 11, 2007, 03:20 PM
 
It's easy enough to send you tar and gnutar. But you haven't said if those commands are still present or not in /usr/bin/
     
Fresh-Faced Recruit
Join Date: May 2007
Status: Offline
Reply With Quote
Sep 11, 2007, 03:48 PM
 
I didn't see them with a quick look. Neither did command line

[code]Mac-Os-X-Home:~ me$ cd /usr/bin
Mac-Os-X-Home:/usr/bin me$ ./tar
-bash: ./tar: No such file or directory
Mac-Os-X-Home:/usr/bin me$ ./gnutar
-bash: ./gnutar: No such file or directory[/quote]
     
Administrator
Join Date: May 2000
Location: California
Status: Offline
Reply With Quote
Sep 11, 2007, 04:51 PM
 
Code:
cd /usr/bin ls -al
This will give an orderly list to look through. There should be 600+ items in here. If only tar & gnutar are missing, we can send them. If there are substantially less than 600, then install to another partition or to a flashdrive. Then copy across from that folder on the fresh install, and repair permissions on your boot drive afterwards.

Also, is your system a PPC or Intel Mac?
     
Fresh-Faced Recruit
Join Date: May 2007
Status: Offline
Reply With Quote
Sep 11, 2007, 05:29 PM
 
Finder shows 766 files, Do you really want me to post that much?
I think its only those two files that are missing.
I am using PPC.

Thanks for the help btw, I am still lost to why tar will not compile but getting it fixed one way or another.
     
Administrator
Join Date: May 2000
Location: California
Status: Offline
Reply With Quote
Sep 11, 2007, 06:10 PM
 
I'm guessing you accidentally zipped up the missing commands, which by default removes the unzipped versions.

Check your PMs please.
     
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Sep 11, 2007, 06:37 PM
 
I'm guessing the reason reinstalling gnutar from source didn't work is because it installed the executables into /usr/local/bin and that's not in your PATH. I'd try to get back the OS X native version anyway, though, because I think it handles metadata more gracefully.
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
Posting Junkie
Join Date: Dec 2000
Status: Offline
Reply With Quote
Sep 11, 2007, 07:45 PM
 
Yeah, that's what I was thinking too. In that case, you could get them back where you want them by either adding /usr/local/bin to your PATH, or by just moving the new ones:

sudo mv /usr/local/bin/tar /usr/bin/tar

However, if you want the default OS X version of tar back, here comes the obligatory shameless plug: Pacifist can pull it off of the OS X install discs. Check out the link in my signature.

Ticking sound coming from a .pkg package? Don't let the .bom go off! Inspect it first with Pacifist. Macworld - five mice!
     
Fresh-Faced Recruit
Join Date: May 2007
Status: Offline
Reply With Quote
Sep 12, 2007, 11:02 PM
 
Originally Posted by Chuckit View Post
I'm guessing the reason reinstalling gnutar from source didn't work is because it installed the executables into /usr/local/bin and that's not in your PATH. I'd try to get back the OS X native version anyway, though, because I think it handles metadata more gracefully.
Yes that is correct, I just checked.
The ones reader50 has sent me worked just fine. I was able to decompress my cpanel backups so I could update my test site on my computer (its over 2 weeks old and content changes every day so it was time to update it).

I will have to remember to check that next time. But a symlink would of worked as well if I had known about that
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 08:37 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2