forked from peterbe/tiler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.ubuntu.sh
executable file
·48 lines (35 loc) · 1.29 KB
/
install.ubuntu.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
#!/usr/bin/env bash
set -e
sudo apt-get install python-software-properties
# python 2.7
sudo add-apt-repository ppa:fkrull/deadsnakes
# redis
sudo add-apt-repository ppa:chris-lea/redis-server
# add mongodb
set +e
grep "dist 10gen" /etc/apt/sources.list | grep -v "#"
if [ $? == 1 ]; then
echo "deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen" | sudo tee -a /etc/apt/sources.list > /dev/null
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10
fi
set -e
sudo apt-get update
sudo apt-get install python2.7 python2.7-dev
sudo apt-get install redis-server mongodb-10gen
wget http://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11-py2.7.egg#md5=fe1f997bc722265116870bc7919059ea
sudo bash ./setuptools-0.6c11-py2.7.egg
sudo apt-get -y install git-core build-essential libcurl4-openssl-dev libjpeg62-dev zlib1g-dev graphicsmagick-imagemagick-compat
cat requirements.txt | grep -v git+https | xargs sudo easy_install-2.7
if [ ! -d motor ]; then
git clone git://github.com/ajdavis/mongo-python-driver.git motor
fi
cd motor
git checkout motor
sudo python2.7 setup.py install
cd ..
touch server/local_settings.py
# ruby fakes3
sudo apt-get install rubygems1.9.1
sudo gem install rubygems-update
sudo /var/lib/gems/1.9.1/bin/update_rubygems
sudo gem1.9.1 install fakes3