Posts: 4,090
Threads: 1,161
Joined: Mar 2021
Reputation:
0
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?
Posts: 37,098
Threads: 2,599
Joined: May 2025
Reputation:
0
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.
Posts: 4,930
Threads: 69
Joined: May 2025
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.
Posts: 4,090
Threads: 1,161
Joined: Mar 2021
Reputation:
0
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!