Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
gunzip doesn't work in lion
#1
I have a unix script whose last line calls unzip to decompress a downloaded file. Unfortunately gunzip no longer works in lion. I get this message:

Launch of "gunzip" failed: the PowerPC architecture is no longer supported.

I've been googling for a fix with no luck. What can I do?
Reply
#2
go into the terminal and type "gunzip --version"

do you get the same error?

I get -

gzip 1.3.12
Copyright © 2007 Free Software Foundation, Inc.
Copyright © 1993 Jean-loup Gailly.
This is free software. You may redistribute copies of it under the terms of
the GNU General Public License .
There is NO WARRANTY, to the extent permitted by law.

Written by Jean-loup Gailly.
---

which indicates to me that it works fine. I suspect that you installed your own version of gzip at some point.

might help if you share the script.
Reply
#3
At the Terminal prompt type
which gunzip
to tell you which actual gunzip is being used when it isn't called via the full path.

The gunzip provided by Mac OS X is /usr/bin/gunzip.

If yours is a different one (e.g. /sw/bin/gunzip) then you can simply use the full /usr/bin/gunzip in your script instead of simply gunzip or unzip.
Reply
#4
that worked. I deleted the /sw/bin/gunzip and made a symbolic link to /usr/bin/gunzip and all is right with the world again. Who knows how that happened. Thanks for the fix!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)