LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-24-2010, 11:18 PM   #1
kvm1983
Member
 
Registered: Jul 2009
Posts: 47

Rep: Reputation: 1
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

Last edited by kvm1983; 11-24-2010 at 11:21 PM.
 
Old 11-26-2010, 09:46 AM   #2
BenCollver
Rogue Class
 
Registered: Sep 2006
Location: OR, USA
Distribution: Slackware64-15.0
Posts: 376
Blog Entries: 2

Rep: Reputation: 172Reputation: 172
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?
 
Old 11-27-2010, 11:26 AM   #3
kvm1983
Member
 
Registered: Jul 2009
Posts: 47

Original Poster
Rep: Reputation: 1
Its a remote machine, and looks like its running Redhat.

- Kshitij
 
Old 11-28-2010, 06:43 AM   #4
BenCollver
Rogue Class
 
Registered: Sep 2006
Location: OR, USA
Distribution: Slackware64-15.0
Posts: 376
Blog Entries: 2

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

rpm -q --queryformat="%{NAME}: %{OPTFLAGS}\n" gasnet
 
Old 11-28-2010, 07:42 PM   #5
kvm1983
Member
 
Registered: Jul 2009
Posts: 47

Original Poster
Rep: Reputation: 1
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
install from source - unable to find the libcurl library - but library is installed pulper Linux - Newbie 2 02-23-2009 09:00 PM
glib2.0 installed. xmms could not be configured ramkri Linux - Newbie 1 07-11-2007 03:30 AM
Configured kernel Ok, but what do all the options mean? essdeeay Linux - Kernel 2 03-31-2007 12:36 PM
Couldn't find ltdl library - but all libtools etc installed... trekk Linux - Software 1 11-10-2006 12:54 AM
Installed Xfree 4.3.0, configured, but it still doesn't work enigma Z Linux - General 2 09-24-2003 08:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration