Skip to content

Error loading packages, command 'tar' missing from path?

8 messages · Brian Ripley, Kjell Konis, Kasper Daniel Hansen +2 more

#
Thanks to all for your help and suggestions.  I apparently did somehow delete tar.  In the terminal i get:

$ which tar
no tar in /usr/bin /bin /usr/sbin /sbin /usr/local/bin /usr/X11R6/bin

Sorry to be a little slow, but I'm not familiar with working in the terminal so I'm sure there is a way to "reset" the path--but I don't know how to do it.  And I don't want to mess anything up any more!  Could anyone direct me as to where I can properly learn about resetting the path to include tar?

Thanks very much--
Andy


----- Original Message -----
From: "Simon Urbanek" <simon.urbanek at r-project.org>
To: "Andrew J. Rominger" <rominger at stanford.edu>
Cc: r-sig-mac at stat.math.ethz.ch
Sent: Wednesday, March 4, 2009 7:31:26 AM GMT -08:00 US/Canada Pacific
Subject: Re: [R-SIG-Mac] Error loading packages, command 'tar' missing from path?
On Mar 3, 2009, at 17:52 , Andrew J. Rominger wrote:

            
It is specific to your system - experience (see archives) shows that  
either you somehow changed the default PATH and it doesn't include / 
usr/bin anymore or you have somehow deleted tar (/usr/bin/tar).

Cheers,
S

  
    
#
To Simon: this was Mac-specific as only on Macs does install.packages 
use this piece of code (and we had a surplus comma in the gettextf 
call).

I've never used 10.4.11 and don't know if /usr/bin/tar is part of the 
base OS or of Xcode on that version.  I was hoping the Mac aficionados 
would know, my main reason for referring Andrew here.
On Thu, 5 Mar 2009, Andrew J. Rominger wrote:

            

  
    
#
I just happened to install 10.4.11 (sans Xcode) yesterday and

$ which tar
/usr/bin/tar
On 5 mars 09, at 10:42, Prof Brian Ripley wrote:

            
#
My tar is in /usr/bin. According to your output, it is not present in  
that directory. As Kjell, I have Xcode install, but I am pretty sure  
tar is available on a standard (non-Xcode installed) Mac system -  
otherwise the binary distribution would have a bit of a problem.

My conclusion is that you somehow manage to delete tar from your  
system. How you did that I have no idea about. You could
  a) restore from backups (you do have backups, right)
  b) Install Xcode and see if it helps (I doubt that has anything to  
do with it, but it might restore stuff...)
  c) re-install your system
  d) install tar your self

d) is probably not too smart unless you really know what you are  
doing. If you have access to another machine with the same OS version  
you could try copy /usr/bin/tar. If you don't have backups...

Kasper
On Mar 5, 2009, at 1:22 , Andrew J. Rominger wrote:

            
#
On Mar 5, 2009, at 4:42 , Prof Brian Ripley wrote:

            
tar is part of the base system, i.e. it is always installed on OS X  
(no Xcode needed). On the Tiger DVD it's in
/System/Installation/Packages/BaseSystem.pkg
so you can restore it from there.

Cheers,
S
#
On Mar 5, 2009, at 12:47 , Simon Urbanek wrote:

            
.. to be more precise the tar itself is on the DVD in /usr/bin since  
the DVD is the base system ..

Cheers,
S
#
Good to know, thanks.

Kasper
On Mar 5, 2009, at 9:49 , Simon Urbanek wrote:

            
1 day later
#
thanks to all for your help.  i just re-installed my system and that worked.

thanks again,
andy


----- Original Message -----
From: "Kasper Daniel Hansen" <khansen at stat.berkeley.edu>
To: "Simon Urbanek" <urbanek at research.att.com>
Cc: "Andrew J. Rominger" <rominger at stanford.edu>, "list R" <r-sig-mac at stat.math.ethz.ch>
Sent: Thursday, March 5, 2009 10:53:26 AM GMT -08:00 US/Canada Pacific
Subject: Re: [R-SIG-Mac] Error loading packages, command 'tar' missing from path?

Good to know, thanks.

Kasper
On Mar 5, 2009, at 9:49 , Simon Urbanek wrote: