Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

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
add comment

1 Answer

up vote 3 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
add comment

Your Answer

 
discard

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.