removed main.cfg, not used anywhere
[limo.git] / INSTALL.debian.sh
blob6301f081614aa2048f6e4eb59528883f5f294cf1
1 #!/bin/sh
3 # updated: 6/20/2009
5 if [ -f `which easy_install` ]; then
6 echo "Installing mysql-server and subversion" && \
7 apt-get install mysql-server-5.0 libmysqlclient15-dev subversion && \
8 echo "Beginning source builds" && \
9 mkdir -p build && \
10 cd build && \
12 echo "Building httplib2..." && \
13 wget -nc http://httplib2.googlecode.com/files/httplib2-0.4.0.tar.gz && \
14 tar xzvf httplib2-0.4.0.tar.gz && \
15 echo "Fetching and applying custom patch..." && \
16 patch -N build/httplib2-0.4.0/httplib2/__init__.py < build/httplib2.303error.patch
17 cd httplib2-0.4.0/ && \
18 python setup.py install && \
19 cd .. && \
21 echo "Building lighttpd..." && \
22 wget -nc http://www.lighttpd.net/download/lighttpd-1.4.23.tar.gz &&\
23 tar xzvf lighttpd-1.4.23.tar.gz && \
24 cd lighttpd-1.4.23 && \
25 ./configure --disable-ipv6 --disable-lfs --without-zlib --without-bzip2 --without-deflate --prefix=/usr && \
26 make && \
27 sudo make install && \
28 cd .. &&\
30 echo "Building MySQL-python" && \
31 wget -nc http://downloads.sourceforge.net/mysql-python/MySQL-python-1.2.3c1.tar.gz && \
32 tar xzvf MySQL-python-1.2.3c1.tar.gz && \
33 cd MySQL-python-1.2.3c1 && \
34 python setup.py install && \
35 cd .. && \
37 echo "Building Imaging" && \
38 wget -nc http://effbot.org/downloads/Imaging-1.1.7b1.tar.gz && \
39 tar xzvf Imaging-1.1.7b1.tar.gz && \
40 cd Imaging-1.1.7b1 && \
41 python setup.py install && \
42 cd .. && \
44 echo "Building multiprocessing" && \
45 wget -nc http://pypi.python.org/packages/source/m/multiprocessing/multiprocessing-2.6.0.2.tar.gz &&\
46 tar xzvf multiprocessing-2.6.0.2.tar.gz && \
47 cd multiprocessing-2.6.0.2 && \
48 python setup.py install && \
49 cd .. && \
51 echo "Building SQLite library" && \
52 wget -nc http://www.sqlite.org/sqlite-amalgamation-3.6.15.tar.gz &&\
53 tar xzvf sqlite-amalgamation-3.6.15.tar.gz &&\
54 cd sqlite-3.6.15 &&\
55 ./configure --prefix=/usr &&\
56 make &&\
57 make install &&\
58 cd .. && \
60 echo "Building SQLite python module: apsw" && \
61 svn co http://apsw.googlecode.com/svn/apsw/trunk apsw &&\
62 cd apsw && \
63 python setup.py install
65 else
66 echo "You must install the python 'setuptools' package. I can't do this automatically."
67 exit 1