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.

You must log in to answer this question.

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