forked from eddix/Roshan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·46 lines (35 loc) · 1.49 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/bin/sh
WORKDIR=`dirname $0`
WORKDIR=`cd "$WORKDIR"; pwd`
cd $WORKDIR
echo "extracting..."
tar xzf roshan_env_pack.tgz
cd sqlite-3.6.4
./configure --prefix=$WORKDIR/sqlite --disable-tcl && make -j4 && make install
cd ..
cd Python-2.6.5
sed s!\$sqlite_path!$WORKDIR\/sqlite!g setup.py.template > setup.py
./configure --prefix=$WORKDIR/python --enable-shared && make -j4 && make install
export LD_LIBRARY_PATH=$WORKDIR/python/lib/:$LD_LIBRARY_PATH
export PATH=$WORKDIR/python/bin:$PATH
cd ..
cd setuptools-0.6c11
python setup.py install
cd ..
easy_install ipython-0.10-py2.6.egg
cd Django-1.2.1
python setup.py install
cd ..
cd httpd-2.2.22
./configure --prefix=$WORKDIR/apache --with-python=$WORKDIR/python/bin/python --with-apxs=$WORKDIR/apache/bin/apxs --with-included-apr && make -j4 && make install
echo "LoadModule wsgi_module modules/mod_wsgi.so" >> $WORKDIR/apache/conf/httpd.conf
echo "WSGIScriptAlias /roshan $WORKDIR/roshan/roshan.wsgi" >> $WORKDIR/apache/conf/httpd.conf
echo "<Directory $WORKDIR/roshan>" >> $WORKDIR/apache/conf/httpd.conf
echo "Order deny,allow" >> $WORKDIR/apache/conf/httpd.conf
echo "Allow from all" >> $WORKDIR/apache/conf/httpd.conf
echo "</Directory>" >> $WORKDIR/apache/conf/httpd.conf
cd ..
cd mod_wsgi-2.6
./configure --prefix=$WORKDIR/apache --with-python=$WORKDIR/python/bin/python --with-apxs=$WORKDIR/apache/bin/apxs && make -j4 && make install
cd ..
rm -rf httpd-2.2.22 mod_wsgi-2.6 setuptools-0.6c11 sqlite-3.6.4 Python-2.6.5 Django-1.2.1 ipython-0.10-py2.6.egg