LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 01-18-2003, 04:06 AM   #1
sentme_mail
Member
 
Registered: Sep 2002
Posts: 59

Rep: Reputation: 15
gunzip


hi,
how do i install gunzip???
when i tried to run this command it says "not found"
thanks
 
Old 01-18-2003, 05:24 AM   #2
yngwin
Member
 
Registered: Dec 2002
Location: China
Distribution: Arch
Posts: 359

Rep: Reputation: 33
have you tried
Code:
gzip -d
?

How to install depends on your distro...
 
Old 01-18-2003, 10:09 AM   #3
sentme_mail
Member
 
Registered: Sep 2002
Posts: 59

Original Poster
Rep: Reputation: 15
gzip: not found

i am using solaris 8 intel
 
Old 01-18-2003, 10:47 AM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 270Reputation: 270Reputation: 270
Moved: More suitable for the Solaris forum.

Well, first you'll need to download the gzip to install. After unpacking, you'll usually find a INSTALL or README file to follow on how to proceed to install.

This page might help get you going: http://www.kempston.net/solaris/utilitysoftware.html
 
Old 01-18-2003, 11:32 PM   #5
sentme_mail
Member
 
Registered: Sep 2002
Posts: 59

Original Poster
Rep: Reputation: 15
i can see the application in \usr\local\bin
any idea?
 
Old 01-19-2003, 02:09 AM   #6
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 270Reputation: 270Reputation: 270
Check to see if /usr/local/bin is in your PATH with this command:

$PATH

Or try cd'ing to that directory and issue the command with a ./ in front of it to see if it works that way.
 
Old 01-19-2003, 05:30 AM   #7
sentme_mail
Member
 
Registered: Sep 2002
Posts: 59

Original Poster
Rep: Reputation: 15
/usr/local/bin is not listed, how do i add it in??
 
Old 01-19-2003, 09:30 AM   #8
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 270Reputation: 270Reputation: 270
If your using the Bourne Shell, you'll want to add the path to ~/.profile or your system wide initialization file /etc/profile.

If its bash your using it can be either ~/.bash_profile , ~/.bash_login or ~/.profile or the system wide initialization file /etc/profile you'll want to add the path to.
 
Old 01-19-2003, 09:50 AM   #9
sentme_mail
Member
 
Registered: Sep 2002
Posts: 59

Original Poster
Rep: Reputation: 15
i am using root account, how do i create /usr/local/bin for root?
 
Old 01-19-2003, 10:57 AM   #10
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 270Reputation: 270Reputation: 270
You'd probably want to edit the system wide init file then /etc/profile. Just open it up and add the /usr/local/bin in the PATH that should already be existing there separated by a colon
 
Old 01-19-2003, 11:11 AM   #11
sentme_mail
Member
 
Registered: Sep 2002
Posts: 59

Original Poster
Rep: Reputation: 15
any idea why does gunzip installed into /usr/local/bin ??
 
Old 01-19-2003, 04:28 PM   #12
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 270Reputation: 270Reputation: 270
Quote:
Originally posted by sentme_mail
any idea why does gunzip installed into /usr/local/bin ??
Most likely so regular users besides root can use it.
 
Old 01-19-2003, 07:10 PM   #13
sentme_mail
Member
 
Registered: Sep 2002
Posts: 59

Original Poster
Rep: Reputation: 15
below is the /etc/profile file,
where should i put the /usr/local/bin dir??

#ident "@(#)profile 1.18 98/10/03 SMI" /* SVr4.0 1.3 */

# The profile that all logins get before using their own .profile.

trap "" 2 3
export LOGNAME PATH

if [ "$TERM" = "" ]
then
if /bin/i386
then
TERM=sun-color
else
TERM=sun
fi
export TERM
fi

# Login and -su shells get /etc/profile services.
# -rsh is given its environment in its .profile.

case "$0" in
-sh | -ksh | -jsh)

if [ ! -f .hushlogin ]
then
/usr/sbin/quota
# Allow the user to break the Message-Of-The-Day only.
trap "trap '' 2" 2
/bin/cat -s /etc/motd
trap "" 2

/bin/mail -E
case $? in
0)
echo "You have new mail."
;;
2)
echo "You have mail."
;;
esac
fi
esac

umask 022
trap 2 3
 
Old 01-19-2003, 07:52 PM   #14
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 270Reputation: 270Reputation: 270
Since you already have the "export LOGNAME PATH" present I would place it just above it with a line like this:

PATH="/usr/local/bin:/usr/bin:/usr:/bin:/usr/sbin:/usr/sbin"

I added a few others as you can tell, to cover most of the paths of where most of your programs are stored.
 
Old 01-19-2003, 07:59 PM   #15
sentme_mail
Member
 
Registered: Sep 2002
Posts: 59

Original Poster
Rep: Reputation: 15
add the path in profile file, but when i run gzip, it says command not found.
do i need to reboot??

Quote:
Originally posted by trickykid
Since you already have the "export LOGNAME PATH" present I would place it just above it with a line like this:

PATH="/usr/local/bin:/usr/bin:/usr:/bin:/usr/sbin:/usr/sbin"

I added a few others as you can tell, to cover most of the paths of where most of your programs are stored.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Gunzip Problem anandham Red Hat 2 08-11-2005 05:13 AM
Gunzip Problem anandham Linux - Newbie 1 08-09-2005 07:07 AM
Help using gunzip. troycus Linux - Newbie 2 09-22-2003 08:32 PM
gunzip-how to use. OldSarge Linux - Software 11 08-28-2003 04:10 PM
gunzip command ronss Linux - Newbie 3 03-21-2002 12:04 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 10:42 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