Package creation problems with Source files

Hi,

I am creating "LSOF" solaris package from solaris "source" files. I have compiled the source file and with that i created prototype file also. Then using pkgmk command i can make the package .

In the package i am having (pkginfo pkgmap reloc) two file and one directory respectively

But what is the problem i am facing is when i install the package using "pkgadd -d /directory" the output shows its successfully installed. I dont know where the package is installed and "lsof command" doesnt show any output.

Please help me to find where i am going wrong. I willing to give more updates on this on your query.

Thanks,
G.Kathirvel

lsof is probably in /usr/local/bin. You need to be sure /usr/local/bin is in your PATH variable.

You have the option to choose where it installs as part of ./configure . If you didn't tell configure any --prefix in particular, it probably chose /usr/local as jim said. This is probably a smart default for custom builds since, as you've found, it's not in PATH and seldom used, so unlikely to install overtop of anything else. But if you want it to install in standard locations, you need to set the prefix before you build.

@Jim,

yes jim, I added the necessary PATH variable and the problem is not that i guess. After configure and make, the lsof command is working , but it is not taking the /usr/local/bin. Its is taking the where we used to compile the source files in my example i used "/var/tmp/GKVlsof" , in this path itself it is installing. and the lsof command is not working anywhere in the server other than this directory.

@Corona688,

Actually ./configure is not working in this case.. it is asking for dielect . Here the dielect is solaris. So i forced to use the command "./Configure solaris" (Note:CAPS "C" for configure), so i am unable to use "prefix" here.
And as you said it is not taking /usr/local as default path to install it is taking the compiled path to install. Whereever i move the final Package "GKVlsof " it is going back to install in the compiled path .

I checked the condition two or more server , but still i didnt get the answer.
Please tell the possible way to build this package . Now i am building LSOF4.86 version.

I Hope i am not confusing both of you. If you want i can give more descriptions as how i did it. Expecting for your ideas to create the package.

Thanks & Regards,
G.Kathirvel.