-   AIX (
-   -   lsof not found (

geekslinux 12-18-2014 06:11 AM

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
# oslevel
# rpm -qa | grep lsof
# 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

Any help in this will be highly appreciated. Thanks in advance.

NevemTeve 12-18-2014 08:36 AM

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):


./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.

veerain 12-18-2014 10:18 AM

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.

NevemTeve 12-18-2014 10:53 AM

Provided it is installed at all: rpm -ql lsof

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

geekslinux 12-18-2014 10:15 PM

Thanks NevemTeve It was installed in the location specified by you. Thanks a lot.

All times are GMT -5. The time now is 10:07 AM.