I'm a bit confused.

I've installed a bunch of libraries (e.g. vtk, gsl,...) that I need for a c++ project for school. I used homebrew to install them (luckily there were formulas available).

My question is, does Homebrew link these into /usr/include or something comparable? Or is this something I would need to do manually?

Homebrew usually does this kind of stuff for executables, yet I can't seem the find the libraries anywhere other than in the /usr/local/Cellar/... directories. I have a bunch of libraries installed so I can't simply use -L/... for each of them.

  • Shouldn't whatever is in the Cellar be linked to the /usr/local? If it is a project, then I'd suggest using a Makefile; it would make things easier, does it not?
    – ismail
    Feb 17 '12 at 12:09

They are usually linked in /usr/local/lib. If they are not there, try brew link <library-you-are-installing>; that should solve it.

  • Ive found (as of Big Sur) - it appears to store the libs in /opt/homebrew/lib/
    – lewis
    Aug 11 at 19:49

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .