
そう言う 事か・・・ 今頃 気が付く。
manページを 置くためのディレクトリを作る。
[root@server2 lsof_4.68_src]# mkdir /usr/man
[root@server2 lsof_4.68_src]# make install
(cd lib; make DEBUG="-O" CFGF="-DLINUXV=24019 -DGLIBCV=202 -DHASIPv6 -D_FILE_OFFSET_BITS=64 -DLSOF_V
STR=\"2.4.19-0vl11\"")
make[1]: 入ります ディレクトリ `/usr/local/src/lsof_4.68/lsof_4.68_src/lib'
make[1]: `all' に対して行うべき事はありません。
make[1]: 出ます ディレクトリ `/usr/local/src/lsof_4.68/lsof_4.68_src/lib'
Constructing version.h
cc -DLINUXV=24019 -DGLIBCV=202 -DHASIPv6 -D_FILE_OFFSET_BITS=64 -DLSOF_VSTR=\"2.4.19-0vl11\" -O
-c -o usage.o usage.c
cc -o lsof dfile.o dmnt.o dnode.o dproc.o dsock.o dstore.o arg.o main.o misc.o node.o print.o proc.o
store.o usage.o -L./lib -llsof
Please write your own install rule. Lsof should be installed
setuid to root if you wish any lsof user to be able to examine
all open files. Your install rule actions might look something
like this:
install -m 4xxx -o root -g <group> ${PROG} ${BIN}
install -m 444 ${MAN} ${DOC}
You will have to complete the 4xxx modes, the <group> value,
and the skeletons for the BIN and DOC strings, given at the
beginning of this Makefile, e.g.,
BIN= ${DESTDIR}/usr/local/etc
DOC= ${DESTDIR}/usr/man/man8
GRP= sys
install -m 4500 -o root -g sys lsof /sbin
install -m 444 lsof.8 /usr/man/man8
[root@server2 lsof_4.68_src]#
無事に インストール成功 (*^_^*)
一応 確認してみる(笑)
[root@server2 lsof_4.68_src]# which lsof
/sbin/lsof
80番号のポートをオープンしているプロセスを確認してみました。
[root@server2 lsof_4.68_src]# lsof -i:80
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
httpd *****nobody 3u IPv4 ***** TCP *:http (LISTEN)
httpd *****nobody 3u IPv4 ***** TCP *:http (LISTEN)
httpd *****nobody 3u IPv4 ***** TCP *:http (LISTEN)
かなり・・・つまづきましたが^^;
何とか インストール成功かな。