Skip to content

Instantly share code, notes, and snippets.

@vhbit
Created March 15, 2013 06:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vhbit/5167804 to your computer and use it in GitHub Desktop.
Save vhbit/5167804 to your computer and use it in GitHub Desktop.
libxml & pkg-config on OS X under brew
from: https://github.com/moovweb/gokogiri/issues/14#issuecomment-12736547
Homebrew's libxml-2.0 2.8.0 has pkgconfig support. For anyone coming here for answers, you only need to do the final steps:
Create symbolic link.
sudo ln -s BREW_PATH/Cellar/libxml2/2.8.0/lib/pkgconfig/libxml-2.0.pc \
BREW_PATH/lib/pkgconfig/libxml-2.0.pc
Check with pkg-config:
pkg-config --cflags libxml-2.0 libxml-2.0
I got this as result: -IBREW_PATH/Cellar/libxml2/2.8.0/include/libxml2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment