bash: tar: command not found

Larry Hall (Cygwin)
Thu Apr 12 00:37:00 GMT 2007

Cheney, Christian wrote:
>>> Look in '/etc/postinstall' and see if there are any scripts there 
>>> that don't end in ".done".
> There are none
>>> Also, check '/var/log/setup.log.full' for any messages that would 
>>> indicate the problem.
> I can't see anything.  Take a look.
>>> In the worst case, you can try running each of the scripts
>>> in '/etc/postinstall' manually.
> $ bash -rcfile
> install-info: menu item `tar' already exists, for file `tar'
> install-info: menu item `tar' already exists, for file `tar'
> cheneyc@NW33687L /cygdrive/c/cygwin/etc/postinstall
> $ tar
> bash: tar: command not found
> Interestingly enough, I went to the installation file to check to see if
> I could manually unzip tar.exe to the /bin directory.  After running
> bunzip2 on the tar-1.16.1-1.tar.bz2, I opened the resulting
> tar-1.16-1.tar file in winzip.  I tried to extract the tar.exe file, and
> it gave me a "Cannot copy file: Cannot read from the source file or
> disk" error.  This is in contrast to what happens when I manually
> extract the rmt.exe file, which gives me no error.  I can send you the 2
> MB file if you want.

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

If you're saying by the above that you have c:\cygwin\bin\bunzip2.exe
and can run it from the shell the same way as you are attempting to run
'tar', then I would say that you have a bad tar package.  Try installing
it from a different mirror and see if that helps.

FWIW, 'setup.exe' reports 'tar-1.16.1-1.tar.bz2' as a 696K file.

Larry Hall                    
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
216 Dalton Rd.                          (508) 893-9889 - FAX
Holliston, MA 01746


A: Yes.
 > Q: Are you sure?
 >> A: Because it reverses the logical flow of conversation.
 >>> Q: Why is top posting annoying in email?

Unsubscribe info:
Problem reports:

More information about the Cygwin mailing list