zhwg1a:/usr/local/lsof/lsof-4.88 # Uname-a
HP-UX Zhda b.11.23 U ia64 4206295294 unlimited-user license
Download the source file:
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.88/
Unzip my directory is:/usr/local/lsof/
CD:/usr/local/lsof/lsof-4.88
To view the installation language:
zhda:/usr/local/lsof/lsof-4.88 #./configure
No Target dialect was specified.
Usage:configure <options> <target-dialect>
<options>:-clean:clean up previous configuration
-d|-dialects:display a list of supported dialect versions
-h|-help:display Help Information
-n:avoid AFS, customization, and inventory checks
<target-dialect> (****use-d to GET tested dialect VERSION numbers****):
AIX|AIXGCC:IBM Aix xlc (AIX) or GCC (AIXGCC)
Darwin:apple Darwin
Decosf:dec OSF/1
Digital_unix|du:digital Unix
Freebsd:freebsd
Hpux|hpuxgcc:hp-ux cc (HPUX) or gcc (HPUXGCC)
Linux:linux
Netbsd:netbsd
Nextstep|next|ns|nxt:nextstep
Openbsd:openbsd
Openstep|os:openstep
Osr|sco:sco OpenServer < 6.0.0, SCO Devloper ' s compiler
Osrgcc|scogcc:sco OpenServer < 6.0.0, gcc compiler
Osr6:sco openserver 6.0.0, SCO compiler
Solaris|solariscc:solaris gcc (Solaris) or CC (SOLARISCC)
Tru64:tru64 UNIX
unixware|uw:sco| Caldera UnixWare
Select Hpux Here
Configuration:
./configure Hpux
Prompt to run Gmake
Run Gmake to build the executable file lsof, copy it to the environment variable in some directory after the installation is complete.
CP Lsof/usr/local/bin
zhda:/#执行which lsof
/usr/local/bin//lsof
Hp-unix lsof Source File installation method