I just spend the best part of 50 minutes getting lxml running on Dreamhost (really not recommended as a host, at all). Here's what I hope is a working shell script that takes a pristine Dreamhost site and installs lxml on it.
#!/bin/sh
mkdir work
cd work
curl -O ftp://xmlsoft.org/libxml2/LATEST_LIBXML2
curl -O ftp://xmlsoft.org/libxml2/LATEST_LIBXSLT
tar -xzf LATEST_LIBXML2
tar -xzf LATEST_LIBXSLT
cd libxml2-*
./configure --prefix=${HOME}/.local
make
make install
cd ../libxslt-*
./configure --prefix=${HOME}/.local --with-libxml-prefix=${HOME}/.local --with-libxml-include-prefix=${HOME}/.local/include --with-libxml-libs-prefix=${HOME}/.local/lib
make
make install
export LDFLAGS=-L/$HOME/.local/lib
export CPPFLAGS=-I/$HOME/.local/include
export LD_RUN_PATH=$HOME/.local/lib
curl -O http://peak.telecommunity.com/dist/ez_setup.py
python ez_setup.py
easy_install --prefix=~/.python lxml
python -c "from lxml import etree"
Comments
:// says…
Edit comment — March 25, 2009 23:09:07+00:00
What is wrong with dreamhost?
Thanks for the script :D
Installing Zine on Dreamhost — Hozn Tech says…
Edit comment — December 21, 2009 04:08:16+00:00
...n libxml and libxslt libraries to make this all possible. This isn't as painful as it ounds. I used this blogpost as the basis for my approach. I changed those steps to use ${HOME}/usr for the --prefix flags (rath...
HOWTO: Python 2.6.5 + Django (via Passenger WSGI) at DreamHost » blog do chester says…
Edit comment — April 9, 2010 02:38:43+01:00
...rrect places. My issue was with lxml, but I solved it with these instructions (only changing .local to local).
That should allow you to add everything you need until your app wo...