1832459 Members
3014 Online
110043 Solutions
New Discussion

Re: Lsof compile problem

 
Manuel_8
Advisor

Lsof compile problem

Hello guy,
I must install lsof on my server (HP-UX 11.11; A-Class);
I have download the source code of lsof_4-64, I execute gunzip and tar commands.
To compile its, I have execute these commands:
./Configure hpux
make
I try execute lsof -h command and I'haven't problems;
I must install lsof, I execute HPUX.install, but I have obtain this message:
/HPUX.Install: Package: not found.
./HPUX.Install[2]: Version: not found.
./HPUX.Install[3]: Syntax error at line 4 : `newline or ;' is not expected.

I haven't install ANSI-C.
Can Somebady help me.....Can I compile lsof??

Thanks

Manuel
6 REPLIES 6
U.SivaKumar_2
Honored Contributor

Re: Lsof compile problem

Hi,
you cannot compile using default compiler which comes with HP-UX OS . Either use ANSI C or GCC .

ANSI C is a priced product , But GCC is a open source .

regards,
U.SivaKumar
Innovations are made when conventions are broken
Manuel_8
Advisor

Re: Lsof compile problem

Hi,
I have install ANSI-C, I have execute configure hpux command, and make command, when I execute make command, at the end of output I see this warning message:

/bin/cc -o lsof -DHPUXV=1111 -D_PSTAT64 -DLSOF_VSTR=\"B.11.11\" dfile.o dproc.o dsock.o dstore.o arg.o main.o misc.o node.o print.o proc.o store.o usage.o -L -lc -L./lib -llsof -lnsl
/usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (dfile.o) was detected. The linked output may not run on a PA 1.x system.

The lsof command function correctly, but not function "man lsof"

Plese help me



Hello
U.SivaKumar_2
Honored Contributor

Re: Lsof compile problem

Hi,

make will only compile the lsof it will not copy man pages for you.

try this
#make install

or there should be man directory under the source copy that to your MANPATH directory and
copy lsof binary from the current location to
/usr/bin

regards,
U.SivaKumar
Innovations are made when conventions are broken
Manuel_8
Advisor

Re: Lsof compile problem

Hello,
I try execute make install command, but this operation haven't resolve my problem.
Have we got an idea?

Thanks

Manuel
U.SivaKumar_2
Honored Contributor

Re: Lsof compile problem

Hi,

what are the directories under the lsof source direcotry ?
Innovations are made when conventions are broken
Manuel_8
Advisor

Re: Lsof compile problem

Hi,
for resolving my problem I simply copy the file lsof.8 under /usr/local/man/man8 directory, and I creat it if not exist.
Thanks for your help.

Hello


Manuel