LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   How to find out what options a library was configured with when it was installed (https://www.linuxquestions.org/questions/linux-general-1/how-to-find-out-what-options-a-library-was-configured-with-when-it-was-installed-846411/)

kvm1983 11-24-2010 11:18 PM

How to find out what options a library was configured with when it was installed
 
Hello
Is there a way to find out with what options a library was configured with when it was installed?

I am trying to install a library on my system that depends on gasnet and it requires me to configure it with the very same options that gasnet was configured with. Gasnet was not originally installed by me, so I cannot tell. I can see bin/, include/, lib/ and share/ directories in the gasnet folder and no other information in it. To be specific, I need to use the same CFLAGS that were used during installation of gasnet. For example, if it was installed using '-g -O2', I have to make sure I use the same CFLAGS here.

Your help is appreciated.

- Kshitij

BenCollver 11-26-2010 09:46 AM

I do not think it is possible to determine this information from the library itself. The packaging system may be able to help. Which distribution are you using?

kvm1983 11-27-2010 11:26 AM

Its a remote machine, and looks like its running Redhat.

- Kshitij

BenCollver 11-28-2010 06:43 AM

If it was installed using the package system, then the following rpm command could help.

rpm -q --queryformat="%{NAME}: %{OPTFLAGS}\n" gasnet

kvm1983 11-28-2010 07:42 PM

Looks like gasnet was not installed as an rpm package, it might have been installed manually using the standard 'configure,make,make install' process.

'rpm -q --queryformat="%{NAME}: %{OPTFLAGS}\n" gasnet' says that gasnet was not installed and i dont see it either using
'rpm -qa | grep -i gasnet'

Thanks for your help though.


All times are GMT -5. The time now is 12:40 AM.