How to install libxml2-dev libxslt-dev on Mac os

A1exandr picture A1exandr · Oct 20, 2014 · Viewed 9.4k times · Source

I have installed both libxml2 and libxslt with homebrew, but it doesn't want to install libxml2-dev or libxslt-dev: Error: No available formula for libxml2-dev

I have pip, port, and all I could found. I even installed the Xcode command line tools, but with no luck. What is the way to install libxml2-dev & libxslt-dev on Mac 10.10?

Answer

Parker picture Parker · Oct 21, 2014

Try adding STATIC_DEPS, like this

STATIC_DEPS=true sudo pip install lxml