Package creation problems with Source files


 
Thread Tools Search this Thread
Operating Systems Solaris Package creation problems with Source files
# 1  
Old 06-22-2012
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
# 2  
Old 06-22-2012
lsof is probably in /usr/local/bin. You need to be sure /usr/local/bin is in your PATH variable.
# 3  
Old 06-22-2012
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.
# 4  
Old 06-22-2012
Hi jim & Corona688

@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.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

IPS custom package user source

Hello guys, I'm new to this forum and got a question which may be quite uncommon. I created a custom IPS package (using this How to) with some software I have to install frequently to different Solaris 11 zones (MongoDB to be precise). This software will be installed under "/opt/mongodb" and... (1 Reply)
Discussion started by: dheitepriem
1 Replies

2. AIX

PowerVM/lpar creation problems

Hi, I'm a newbie to PowerVM and LPARs ( I work with VmWare and Oracle VM Server for Sparc) .recently we purchased an 8202-e4b server, with two enclosures for add'l disk capacity. it is licensed for PowerVM standard,came preloaded as such, AIX 7.1. I've set up HMC v8.2, and run it through a VM on... (30 Replies)
Discussion started by: computron
30 Replies

3. AIX

XVFB Source package for AIX

Please send me link for XVFB Source package for AIX (3 Replies)
Discussion started by: prathap.g
3 Replies

4. Solaris

SysV package creation, how to predefine DESTDIR

Hi Solaris experts How to predefine the DESTDIR in a Solaris package? Thanks (1 Reply)
Discussion started by: ./hari.sh
1 Replies

5. Windows & DOS: Issues & Discussions

Problems With User Creation Script

Hello everyone, I've been attempting to make a program which creates user accounts from a file which contains the usernames required. It also checks if the directory of the username exists in the C:\Users directory and then is going to give the option to delete the directory, or rename it, this... (1 Reply)
Discussion started by: charlieabee
1 Replies

6. Solaris

Solaris10 Package Creation with variable

Dear All, I am trying to build a solaris package with a variable, so that it can be installed with an environment. The prototype file contains the variables for user and group that can be parameterised during the package installation. The following is the prototype file and the error when ... (2 Replies)
Discussion started by: sanchan
2 Replies

7. AIX

mkinstallp package creation failing "no such file: ./usr/lpp/<package name>/inst_root"

Hello, I'm trying to build a (bff) package from an already installed program (clam antivirus) using mkinstallp. However, mkinstallp fails with "no such file: ./usr/lpp/<package name>/inst_root" I'm not sure why all files get created ok except for these particular ones. Any help would be... (2 Replies)
Discussion started by: omonte
2 Replies

8. AIX

How to compile a package in AIX when we download its source?

How to compile a package surce in AIX when we download its source? (2 Replies)
Discussion started by: johnveslin
2 Replies

9. UNIX Desktop Questions & Answers

Solaris 10 - Compiling package from source? Different from pkgadd?

Hey everyone, I'm using a SPARC based Solaris 10 5/09 machine and want to install PHP support to it. I already have mysql and apache( came with OS, just started the proccess) installed, so this is the last thing before I can get to learning development :) However, there's something I'm not sure... (1 Reply)
Discussion started by: agummad
1 Replies
Login or Register to Ask a Question