This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: tar/gzip outside of bash problem


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Marko Bozikovic on 2/23/2007 5:18 AM:
> Hi all,
> 
> I've just come across a strange problem. When I try to unpack a tar.gz archive
> in cmd.exe, I get an error:
> 
> tar (child): gzip: Cannot exec: No such file or directory
> tar (child): Error is not recoverable: exiting now
> tar: Child returned status 2
> tar: Error exit delayed from previous errors
> 
> The command line I use is:
> tar zxvf archive.tar.gz

It worked for me.

> 
> When running the same command from bash, it works ok.
> 
> I have found this mail:
> http://cygwin.com/ml/cygwin/2006-08/msg00038.html
> 
> but it's not applicable to my case, since I have no empty entries in the PATH.

But you DO have an entry with spaces and parenthesis; perhaps cygwin's
path-conversion routines are being confused by that?  Can you compare
'echo $PATH' under bash vs. 'set PATH' under cmd?  How about 'env | grep
"^PATH"' under cmd?

> 
> I have updated my packages (including tar and gzip), and the problem persists.
> Attached is a cygcheck.out after the update.

Nothing obvious jumped out at me, other than the fact that your PATH has a
potentially problematic first entry, and that you use textmode mounts even
for known binary directories such as /usr/bin, which is not recommended.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             ebb9@byu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF4EHb84KuGfSFAYARAt0TAJ0d5ef5ScNXn49ziUzxJuHWMoilcgCghU81
/LJTOk2MAdDhC82kQkl7wno=
=WQQI
-----END PGP SIGNATURE-----

--
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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]