forked from breenmachine/httpscreenshot
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathinstall-dependencies.sh
42 lines (29 loc) · 1.12 KB
/
install-dependencies.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
# Installation Script - tested on an ubuntu/trusty64 vagrant box
# Show all commands being run
#set -x
# Error out if one fails
set -e
apt-get install -y swig swig2.0 libssl-dev python-dev
# Newer version in PyPI
#apt-get install -y python-requests
# Newer version in PyPI
#apt-get install -y python-m2crypto
# Installing pillow from PIP for the latest
#apt-get install -y python-pil
# Install pip and install pytnon requirements through it
apt-get install -y python-pip
pip install -r requirements.txt
# This binary is distributed with the code base, version is
# more recent then the one in the ubuntu repo (1.9.1 vs 1.9.0)
#apt-get install -y phantomjs
# Grab the latest of phantomjs it directly from the source
wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.8-linux-x86_64.tar.bz2
phantom_md5sum=`md5sum phantomjs-1.9.8-linux-x86_64.tar.bz2 | cut -d' ' -f1`
checksum="4ea7aa79e45fbc487a63ef4788a18ef7"
if [ "$phantom_md5sum" != "$checksum" ]
then
echo "phantomjs checksum mismatch"
exit 254
fi
tar xvf phantomjs-1.9.8-linux-x86_64.tar.bz2
mv phantomjs-1.9.8-linux-x86_64/bin/phantomjs /usr/bin/phantomjs