1819803 Members
3172 Online
109607 Solutions
New Discussion юеВ

installing lsof

 
SOLVED
Go to solution
Norman_21
Honored Contributor

installing lsof

Hi guys,

I've just ftp the file lsof-4.64 PA-RISC Binary Depot gzip for the hp-ux 11.00
I've never installed a package before, Could any one please advise as I'm not sure where and how to install it.
appreciate your support.
"Attitudes are contagious, is yours worth catching"/ My first point was given by SEP on January 31, 2003
11 REPLIES 11
V. V. Ravi Kumar_1
Respected Contributor
Solution

Re: installing lsof

hi,
first gunzip it with gunzip command.
#gunzip lsof*.gz
Run swinstall command. Then in the swinstall interface select local directory, hostname, the path of the depot and say OK. After that select the software in the next window, goto Actions and select Install. this will guide u what to do next.

regds
Never Say No
Khalid A. Al-Tayaran
Valued Contributor

Re: installing lsof


Hi,

I have the same issue:

I did this:
gunzip < /tmp/lsof-4.64-sd-11.00.depot.gz | tar xvf -
catalog/INDEX, 1205 bytes, 3 tape blocks
catalog/dfiles/INDEX, 193 bytes, 1 tape blocks
catalog/dfiles/INFO, 138 bytes, 1 tape blocks
catalog/lsof/pfiles/INDEX, 854 bytes, 2 tape blocks
catalog/lsof/pfiles/INFO, 138 bytes, 1 tape blocks
catalog/lsof/lsof-RUN/INDEX, 158 bytes, 1 tape blocks
catalog/lsof/lsof-RUN/INFO, 643 bytes, 2 tape blocks
lsof/lsof-RUN/usr/local/bin/lsof, 143360 bytes, 280 tape blocks
lsof/lsof-RUN/usr/local/doc/lsof/HPUX.Install, 4315 bytes, 9 tape blocks
lsof/lsof-RUN/usr/local/doc/lsof/version, 12 bytes, 1 tape blocks
lsof/lsof-RUN/usr/local/man/man8/lsof.8, 98772 bytes, 193 tape blocks


There is no installation file to pass to swinstall but:

/lsof/lsof-RUN/usr/local/bin/lsof > /tmp/lsof.txt runs fine !!

Is this correct ?
Rajeev  Shukla
Honored Contributor

Re: installing lsof

There are 2 types of lsof packages available. If its a binary depot file i.e. lsof-4.64-sd-11.00.depot.gz then unzip this file using gunzip and then use swinstall -s /lsof-4.64-sd-11.00.depot

And if you cave downloaded the lsof-4.64-ss-11.00.tar.gz (source code) then unzip it and untar this file, which makes a lsof-4.64 directory and a file called HPUX.Install tells the whole procedure to install.

After you have done the installation the files is in /usr/local/bin called lsof

Cheers
Rajeev
Norman_21
Honored Contributor

Re: installing lsof

Thanks guys,

what I have downloaded is the
binary depot file. I'll run the installation process and will let you know the outcome.
Thanks again.
"Attitudes are contagious, is yours worth catching"/ My first point was given by SEP on January 31, 2003
Norman_21
Honored Contributor

Re: installing lsof

Hello again,
The installation went smoothly and everything is fine but when I run the lsof
I get the following msg:

lsof: FATAL: lsof was built for a 32 bit kernel, but this is a 64 bit kernel.

Appreciate your advice.
Thanks.

"Attitudes are contagious, is yours worth catching"/ My first point was given by SEP on January 31, 2003
Rajeev  Shukla
Honored Contributor

Re: installing lsof

Hi AB,
You are right. Try the second option i gave.
Download the source code
lsof-4.64-ss-11.00.tar.gz
uncompress and untar it.
go to lsof-4.64 directory and run ./configure hpux
it will ask few questions keep answering and (don't do inventory check) select default for ease.
then run "make" this process will create a file called lsof in the same directory.
Use this file it will definately work.
I tried this on 64 bit kernel on 11.11

Cheers
Rajeev
Norman_21
Honored Contributor

Re: installing lsof

Shukriya Rajeev. sha'bash.
Thanks Rajeev, that was in Hindi. I'll try it and will keep you updated.
"Attitudes are contagious, is yours worth catching"/ My first point was given by SEP on January 31, 2003
Norman_21
Honored Contributor

Re: installing lsof

Just a question. Do I have to
uninstall the previous one or it'll be overwritten by the new installation.
Thanks.
"Attitudes are contagious, is yours worth catching"/ My first point was given by SEP on January 31, 2003
Rajeev  Shukla
Honored Contributor

Re: installing lsof

Thanks for that AB, You need to uninstall if you need to remove this from IPD(Installed product database) or else you can leave it. Because this file will be created in the directory where you do configure and make(dont do make install coz that fails) and the "lsof" file thus created can be copied where ever you like.

Thats for the day, i'll reply u tomorrow then.

Rajeev
Norman_21
Honored Contributor

Re: installing lsof

Thanks everyone,
It is done. It seems that I had to remove the old binary lsof file from /usr/local/bin
However, now it is working fine.
Thanks again.
"Attitudes are contagious, is yours worth catching"/ My first point was given by SEP on January 31, 2003
Norman_21
Honored Contributor

Re: installing lsof

Closed...
"Attitudes are contagious, is yours worth catching"/ My first point was given by SEP on January 31, 2003