How can I know to which package a single component belongs?

Ryan Schmidt ryandesign at
Mon Nov 30 12:34:27 PST 2009

On Nov 30, 2009, at 13:15, Wolf Drechsel wrote:

> this is the more gereral shape of a questions I issued yesterday:
> Given is an error message following a "sudo port install xyz":
> can't locate file for: <abcd>
> file:<abcd> is not an object file (not allowed in a library)
> I conclude that there must be something wrong with component <abcd>. This <abcd> will normally be a part of a package ("port"), which I have to take care of (install, look for bugs, update, acitvate / deactivate variant etc.)
> My question is: How do I find out which port does contain the component <abcd> ?
> Is there a database, a port command, just intelligent guessing - or a "everybody (exept me) knows"…

"port provides /path/to/file" tells you which port provides that file.

More information about the macports-users mailing list