LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > AIX
User Name
Password
AIX This forum is for the discussion of IBM AIX.
eserver and other IBM related questions are also on topic.

Notices


Reply
  Search this Thread
Old 12-18-2014, 06:11 AM   #1
geekslinux
Member
 
Registered: Jun 2013
Posts: 63

Rep: Reputation: Disabled
lsof not found


I have installed lsof in AIX 7.1, but when I execute lsof it shows

# lsof
ksh: lsof: not found.
# rpm -qa | grep lsof
lsof-4.88-1
# oslevel
7.1.0.0
# rpm -qa | grep lsof
lsof-4.88-1
# which lsof
which: 0652-141 There is no lsof in /usr/bin /etc /usr/sbin /usr/ucb /usr/bin/X11 /sbin /usr/java5/jre/bin /usr/java5/bin.
# whereis lsof
lsof:

Any help in this will be highly appreciated. Thanks in advance.
 
Old 12-18-2014, 08:36 AM   #2
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,076

Rep: Reputation: 1475Reputation: 1475Reputation: 1475Reputation: 1475Reputation: 1475Reputation: 1475Reputation: 1475Reputation: 1475Reputation: 1475Reputation: 1475
ftp://sunsite.ualberta.ca/pub/Mirror...f_4.88.tar.bz2

In this archive there is another archive called lsof_4.88_src.tar,
untar that too.

Enter directory lsof_4.88_src, and do this (or similar):

Code:
./Configure aixgcc 2>&1 | tee log.configure

make all 2>&1 | tee log.make

cp lsof   /usr/local/sbin/
cp lsof.8 /usr/local/share/man/man8/
Answer the questions with the default values.

Edit: Except for 'Disable WARNINGSTATE' -- say 'Y' there.

Last edited by NevemTeve; 12-18-2014 at 08:44 AM.
 
Old 12-18-2014, 10:18 AM   #3
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
See rpm --help or man rpm. RPM has command to list installed files. Find in the list where it has installed the lsof binary. Then execute the binary with full path.
 
Old 12-18-2014, 10:53 AM   #4
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,076

Rep: Reputation: 1475Reputation: 1475Reputation: 1475Reputation: 1475Reputation: 1475Reputation: 1475Reputation: 1475Reputation: 1475Reputation: 1475Reputation: 1475
Provided it is installed at all: rpm -ql lsof

/opt/freeware/bin/lsof or /opt/freeware/sbin/lsof are possible options.

Last edited by NevemTeve; 12-18-2014 at 11:05 AM.
 
Old 12-18-2014, 10:15 PM   #5
geekslinux
Member
 
Registered: Jun 2013
Posts: 63

Original Poster
Rep: Reputation: Disabled
Thanks NevemTeve It was installed in the location specified by you. Thanks a lot.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
lsof command not found pgflrob Linux - Newbie 3 11-19-2011 11:38 PM
[SOLVED] lsof command not found (CentOS) JJJCR Linux - Newbie 2 10-07-2011 04:42 AM
lsof and fuser maheshp86 Linux - Hardware 1 07-19-2010 12:04 PM
lsof permission champak Programming 4 11-26-2007 02:57 AM
lsof: command not found ionian2k Linux - Newbie 1 12-26-2002 08:59 PM

LinuxQuestions.org > Forums > Other *NIX Forums > AIX

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