X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: Thorsten Kampe <thorsten@thorstenkampe.de>
Subject:  RE: bash: tar: command not found
Date:  Thu, 12 Apr 2007 17:02:34 +0100
Lines: 34
Message-ID: <evll6r$op8$1@sea.gmane.org>
References:  <BF28B531A8C7E3409A8AC9C741CB580004BA0895@nwhqsemail01.WSDOT.LOC> <461D6DBB.1000301@cygwin.com> <BF28B531A8C7E3409A8AC9C741CB580004BA08C3@nwhqsemail01.WSDOT.LOC> <461D7F29.10405@cygwin.com> <BF28B531A8C7E3409A8AC9C741CB580004BA0932@nwhqsemail01.WSDOT.LOC> <014a01c77d17$0206ac20$2e08a8c0@CAM.ARTIMI.COM>
Mime-Version:  1.0
Content-Type:  text/plain; charset="iso-8859-15"
Content-Transfer-Encoding:  7bit
User-Agent: MicroPlanet-Gravity/2.70.2067
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

* Dave Korn (Thu, 12 Apr 2007 16:26:57 +0100)
> On 12 April 2007 16:19, Cheney, Christian wrote:
> >>> Don't extract things using non-Cygwin tools unless you really know what
> >>> you're doing (or have been told to do so).  You can make a real mess doing
> >>> this.
> > I would've used CYGWIN, but, unfortunately, tar didn't work ;)
> 
>   You've destroyed your installation.
> 
>   See, we told you it was bad.
> 
>   Specifically, you've gone and created a real /usr/bin directory, when
> normally it is only a mount point that mirrors /bin.  That's because winzip
> doesn't know about cygwin mountpoints.  If it had been untarred by an earlier
> cygwin tar, or by setup.exe which *does* respect cygwin mountpoints, it would
> have ended up in the right place: /bin, and been *visible* in /usr/bin too.
> 
>   This means that tar.exe has been unpacked into C:\cygwin\usr\bin.  That's
> why setup thinks it's installed.  But you can't find it in your $PATH or
> anything, because when cygwin goes to look in /usr/bin (which is where tar.exe
> has been put by winzip), it actually looks in your /bin dir.  And doesn't find
> it.
> 
>   That's why setup thinks it's installed but cygcheck reports "Not Found:
> tar".
> 
>   The fix would be to go into your C:\cygwin\usr directory, using a DOS shell
> or windows explorer, and delete the bin dir.

\cygwin\usr\bin and \cygwin\usr\lib are /real/ directories created by 
the initial Cygwin installation routine. He shouldn't delete those 
directories - just keep them empty...

Thorsten


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

