Skip to content

Instantly share code, notes, and snippets.

@lxneng
Created March 9, 2010 13:13
Show Gist options
  • Save lxneng/326553 to your computer and use it in GitHub Desktop.
Save lxneng/326553 to your computer and use it in GitHub Desktop.
install twisted, instal scrapy
# install twisted
$ cd /usr/local/src
$ svn co svn://svn.twistedmatrix.com/svn/Twisted/trunk twisted
$ cd twisted
$ sudo python setup.py install
# install libxml2
$ cd /usr/local/src
$ wget ftp://xmlsoft.org/libxml2/libxml2-2.7.6.tar.gz
$ tar zxvf libxml2-2.7.6.tar.gz
$ cd libxml2-2.7.6
$ ./configure --prefix=/usr/local/libxml2 --with-python=/usr/local/Cellar/python/2.6.4
$ make
$ sudo make install
$ cd libxml2-2.7.3/python
$ sudo python setup.py install
# check the libxml2
$ python -c "import libxml2
$ sudo easy_install -U Scrapy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment