Looking up libraries and header files

Greg Larkin glarkin at FreeBSD.org
Thu Oct 1 17:05:45 UTC 2009

Hash: SHA1

David Southwell wrote:
>> -----Original Message-----
>> From: owner-freebsd-questions at freebsd.org 
>> [mailto:owner-freebsd-questions at freebsd.org] On Behalf Of Robert Huff
>> Sent: 01 October 2009 08:00
>> To: David Southwell
>> Cc: 'Mak Kolybabi'; freebsd-questions at freebsd.org
>> Subject: RE: Looking up libraries and header files
>> David Southwell writes:
>>>  One problem
>>>  How about ports that are not installed?
>>>  Is there another route that will deal with stuff not on the system?
>> 	I'm not quite sure what you're asking here; perhaps you 
>> could give a scenario?
>> 	The above methods only work for things that are 
>> properly installed/registered with the ports(/packages) 
>> system.  If you've installed something not from a port ... 
>> you're on your own.
> My scenario is a port is compiling but complains about the absense of a
> header or a file from a port that has NOT been installed on the system. I
> have had this a few times when essential source was in a port not listed as
> a dependency.
> What I am thinking of is a centrally maintained database of all header and
> library files available to the port system. 
> David

Hi David,

If a port requires a certain file to build or run, and it's included in
another port that isn't listed as a dependency, please file a PR
(http://www.freebsd.org/send-pr.html) so the port can be fixed.

In the mean time, you can find port files by grepping /usr/ports like so:

find /usr/ports -name pkg-plist -exec grep -l <filename> {} \;


grep -rl <filename> /usr/ports

Keep in mind that not all ports have a pkg-plist file, so this will not
work in some cases.

Hope that helps,
- --
Greg Larkin

http://www.FreeBSD.org/           - The Power To Serve
http://www.sourcehosting.net/     - Ready. Set. Code.
http://twitter.com/sourcehosting/ - Follow me, follow you
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/


More information about the freebsd-questions mailing list