Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

i need gunzip

Status
Not open for further replies.

daydok

Technical User
Dec 17, 2002
12
US
please pardon the ignorance. im just getting into unix, and the first thing i realized is that i need gunzip on a lot of files i want to download. i have downloaded gzip-1.3.5.tar from sunfreeware, but cannot figure out how to make it work. i did the "tar -xvf gzip-1.3.5.tar" command, which created a gzip-1.3.5 directory. i read the install document that got created, and i guess i'm not reading it right. it said to run the "./configure" command. i did - but i guess it can't find a compiler or something? (cc?) here's my question: i can't run the gcc compiler that i downloaded, since i also need to gunzip it, correct? and i can't seem to make an executable copy of gunzip, unless i have a compiler. i searched my drive, and the only cc i found was "/usr/ucb/cc". i copied it over to the gzip-1.3.5 directory, but got an error message that the "C compiler cannot make executables". what should i do? solaris 8, sunblade 100. thanks! daydok1@attbi.com
 
I'd suggest downloading the pre-compiled version of gunzip from though I did think that Solaris 8 came with gunzip as standard? Put it in /usr/local and it works right out of the box. You'll then be able to do the necessary with gcc (though I must admit I downloaded the precompiled version of that too!).

HTH.
 
ken, thanks for the quick reply. when you say precompiled, you mean: "ftp://ftp.sunfreeware.com/pub/freeware/sparc/8/gzip-1.3.5-sol8-sparc-local"
right? i'm kinda slow, so if you don't mind telling me how to properly do it. when i click on the link, it opens up like a text file. am i doing something wrong? do i somehow copy this file to the /usr/bin? how do i do that, if you don't mind. thanks, man.
 
ok, so i figured how to save the pre-compiled file, and then i ran "pkgadd -d" in front of it to make it install under "/usr/local". now, when i run gunzip or gzip on the file that i downloaded, (gunzip file.tar.gz | tar -xvf), it says the following error:

"gunzip: syntax error at line 1: `(' unexpected".

i googled the term and came back with one reply, that it's an architecture error. what does that mean? thanks again.
 
No problem. There's a difference between being slow and being unsure!!

The version I downloaded is at:


If you go to the bottom of that page you'll see the binary version of the package which you can download to your machine. There are also installation instructions there. I installed my copy to /usr/local and haven't had any problem with it. You can link it to cc, which should give you a working copy of the compiler. I think there have been other bits and pieces about this in this forum - try a keyword search for gcc. Let us know how you get on. Cheers.
 
Sorry, we've obviously cross-posted. An architechture error sounds like a problem with the version of gunzip and your hardware. I suggest you try installing the version I mention above. HTH.
 
you're right - i got it to work now. thanks so much!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top