Link to home
Start Free TrialLog in
Avatar of Peewee
Peewee

asked on

zcat

I am trying to unzip the following file

gcc-bin.tar.gz

I have only zcat or uncompress to work with at the moment and not gunzip.

can i do this and if so what is my command instrsuction.

I tried the simple command:

zcat gcc-bin.tar.gz

This command failed.  The error reported is as follows:

No such file: gcc-bin.tar.gz.Z

what are my options?

regards
Peter

Avatar of interiot
interiot

If you have gzip, you can do

  gzip -d gcc-bin.tar.gz
Avatar of Peewee

ASKER

interiot,
i donot hsve gzip installed..

any offers..
zcat is fine.

zcat gcc-bin.tar.gz > gcc-bin.tar
tar xvf gcc-bin.tar

zcat -s a gunzip -c, that means it will send to stdout (I guess your approach kill your teminal?)

======
Werner
It won't work. You need gunzip. zcat is probably a symlink to compress which uses a slightly different compression format than gzip. That is why it looks for a .Z extension. gunzip can unzip .Z files, but not vice versa.
Peewee said he has zcat, zcat is a binary and zcat works for *.gz compression!

======
Werner
Avatar of Peewee

ASKER

chaps,
i tried the zcat commands and they don't work.  I think Marecs is right.

I've tried to install gunzip but it wont install, will post the errors here later..

regards
peewee
Peewee

What OS are you running on? I am on AIX and I am using zcat all the time, so just wondering what could go wrong. What does zcat complain about?

======
Werner
Avatar of Peewee

ASKER

I,m runing solaris Sun OS 5.6 which i think equates to solaris 2.6.

the error mesage i get is:

No such file: gcc-bin.tar.gz.Z

it basically appends the .Z to the file name and hence cant find it.

regards
Peter
ASKER CERTIFIED SOLUTION
Avatar of griessh
griessh
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
try renaming the file with a .Z at the end

Regards Mike
I would go to frresunware.com and download the latest version of gzip, it's best to go ahead and install it, you'll need it.

CA
oops...its sunfreeware.com if u are using solaris plattform
Avatar of Peewee

ASKER

yept thats my only option or get a newer copy of solaris.

many thanks
peewee