Skip to content

Instantly share code, notes, and snippets.

@oldpatricka
Created September 13, 2010 17:02
Show Gist options
  • Save oldpatricka/577632 to your computer and use it in GitHub Desktop.
Save oldpatricka/577632 to your computer and use it in GitHub Desktop.
# Fucking lxml. (thanks to toastdriven)
brew install libxml2 --static
curl -O ftp://xmlsoft.org/libxml2/libxslt-1.1.22.tar.gz
tar xvzf libxslt-1.1.22.tar.gz
cd libxslt-1.1.22
env CFLAGS="-arch i386 -arch ppc -arch x86_64" LDFLAGS="-Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk" ./configure --disable-dependency-tracking --prefix=/usr/local --with-libxml-prefix=/usr/local/Cellar/libxml2/2.7.7/
make
make install
pip install lxml==2.2.6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment