Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
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
up vote 7 down vote accepted

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

share|improve this answer
didn't know that thanks! – romeovs Feb 17 '12 at 15:40

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.