LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-23-2003, 01:01 PM   #1
sk8guitar
Member
 
Registered: Jul 2003
Location: DC
Distribution: mandrake 9.1
Posts: 415

Rep: Reputation: 30
gz??


hey, i don't think thjis belongs heres but whatever.

this system i am using at work is a pain. thanks to some guys in the expect/bash thread i got my script to work, but i want to uncompress a gz file, but there is no gzip on this sytem. as far as i know there is just an unzip. is there any way to do this or do i need to bug the sys admin to install gzip?
 
Old 07-23-2003, 01:05 PM   #2
TheLinuxDuck
Member
 
Registered: Sep 2002
Location: Tulsa, OK
Distribution: Slack, baby!
Posts: 349

Rep: Reputation: 33
Chances are, when you log in, you have a bin dir in your home dir in the PATH. If so, you can install gzip into your personal directory, and use it from there.. one thing, though, is that if there libraries that gzip needs, and you don't have them.. well, I'm not sure if libraries can be installed in the same way.. I don't think so.. but, maybe you can find a precompiled gzip, and install that.

Hope that helps!
 
Old 07-23-2003, 01:06 PM   #3
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
I think you'll need gzip.
 
Old 07-23-2003, 01:07 PM   #4
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
What system are you using ?

At the command line, type whereis gzip
If it is not found, then definitely bug the sys. admin.

What kind of System Administrator does not install GZip.
 
Old 07-25-2003, 11:09 AM   #5
sk8guitar
Member
 
Registered: Jul 2003
Location: DC
Distribution: mandrake 9.1
Posts: 415

Original Poster
Rep: Reputation: 30
beats me, but the command whereis isn't even recognized in this system. freakin weeeak
 
Old 07-25-2003, 11:34 AM   #6
TheLinuxDuck
Member
 
Registered: Sep 2002
Location: Tulsa, OK
Distribution: Slack, baby!
Posts: 349

Rep: Reputation: 33
try which instead. whereis gives you more info than just the location of the binary, including library info, and man pages. which simply gives the location of the binary.

If which isn't recognized, you can also do a manual search of the binary paths, with something like:

for i in `echo $PATH | tr ':' ' '`; do find $i -type f -name "gzip"; done

That will fake the which, sorta.

But, as I said before, if you have a ~/bin dir in the path, you can install it into your home dir and use it just fine (as long as all the necessary libraries are installed).
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration