mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-27 00:07:16 +00:00
fix install script
This commit is contained in:
parent
078c8ea836
commit
3f066ddaec
2 changed files with 14 additions and 27 deletions
|
@ -5,11 +5,7 @@ set -x
|
||||||
|
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
|
|
||||||
sudo apt-get install python-pip
|
sudo apt-get install python-pip python-virtualenv python-dev libfreetype6-dev screen
|
||||||
sudo apt-get install python-virtualenv
|
|
||||||
sudo apt-get install python-dev
|
|
||||||
sudo apt-get install libfreetype6-dev
|
|
||||||
sudo apt-get install screen
|
|
||||||
|
|
||||||
virtualenv AILENV
|
virtualenv AILENV
|
||||||
|
|
||||||
|
@ -17,14 +13,13 @@ echo export AIL_HOME=$(pwd) >> ./AILENV/bin/activate
|
||||||
echo export AIL_BIN=$(pwd)/bin/ >> ./AILENV/bin/activate
|
echo export AIL_BIN=$(pwd)/bin/ >> ./AILENV/bin/activate
|
||||||
echo export AIL_FLASK=$(pwd)/var/www/ >> ./AILENV/bin/activate
|
echo export AIL_FLASK=$(pwd)/var/www/ >> ./AILENV/bin/activate
|
||||||
|
|
||||||
sudo apt-get install g++
|
sudo apt-get install g++ python-tk
|
||||||
sudo apt-get install python-tk
|
|
||||||
|
|
||||||
#Needed for bloom filters
|
#Needed for bloom filters
|
||||||
sudo apt-get install libssl-dev
|
sudo apt-get install libssl-dev libfreetype6-dev python-numpy
|
||||||
|
|
||||||
sudo apt-get install libfreetype6-dev
|
# DNS deps
|
||||||
sudo apt-get install python-numpy
|
sudo apt-get install libadns1 libadns1-dev
|
||||||
|
|
||||||
#needed for mathplotlib
|
#needed for mathplotlib
|
||||||
test ! -L /usr/include/ft2build.h && sudo ln -s freetype2/ft2build.h /usr/include/
|
test ! -L /usr/include/ft2build.h && sudo ln -s freetype2/ft2build.h /usr/include/
|
||||||
|
@ -38,32 +33,22 @@ python -m textblob.download_corpora
|
||||||
|
|
||||||
# REDIS #
|
# REDIS #
|
||||||
test ! -d redis/ && git clone https://github.com/antirez/redis.git
|
test ! -d redis/ && git clone https://github.com/antirez/redis.git
|
||||||
cd redis/
|
pushd redis/
|
||||||
git checkout 2.8
|
git checkout 2.8
|
||||||
git pull
|
git pull
|
||||||
make
|
make
|
||||||
|
popd
|
||||||
|
|
||||||
echo export AIL_REDIS = $(pwd)/src/ >> ./AILENV/bin/activate
|
echo export AIL_REDIS=$(pwd)/src/ >> ./AILENV/bin/activate
|
||||||
|
|
||||||
# REDIS LEVEL DB #
|
# REDIS LEVEL DB #
|
||||||
cd $AIL_HOME
|
|
||||||
test ! -d redis-leveldb/ && git clone https://github.com/KDr2/redis-leveldb.git
|
test ! -d redis-leveldb/ && git clone https://github.com/KDr2/redis-leveldb.git
|
||||||
cd redis-leveldb/
|
pushd redis-leveldb/
|
||||||
git submodule init
|
git submodule init
|
||||||
git submodule update
|
git submodule update
|
||||||
|
popd
|
||||||
|
|
||||||
cd $AIL_HOME
|
mkdir -p $AIL_HOME/{PASTES,Blooms,dumps}
|
||||||
mkdir -p PASTES
|
|
||||||
mkdir -p Blooms
|
|
||||||
mkdir -p dumps
|
|
||||||
|
|
||||||
mkdir -p LEVEL_DB_DATA
|
mkdir -p $AIL_HOME/LEVEL_DB_DATA/{2014,2013}
|
||||||
cd LEVEL_DB_DATA
|
|
||||||
mkdir -p 2014
|
|
||||||
mkdir -p 2013
|
|
||||||
|
|
||||||
cd $AIL_HOME
|
|
||||||
test ! -d langid.py/ && git clone https://github.com/saffsd/langid.py.git
|
|
||||||
cd langid.py/
|
|
||||||
python setup.py install
|
|
||||||
|
|
||||||
|
|
|
@ -32,3 +32,5 @@ whoosh
|
||||||
#ASN lookup requirements
|
#ASN lookup requirements
|
||||||
http://adns-python.googlecode.com/files/adns-python-1.2.1.tar.gz
|
http://adns-python.googlecode.com/files/adns-python-1.2.1.tar.gz
|
||||||
https://github.com/trolldbois/python-cymru-services/archive/master.zip
|
https://github.com/trolldbois/python-cymru-services/archive/master.zip
|
||||||
|
|
||||||
|
https://github.com/saffsd/langid.py/archive/master.zip
|
||||||
|
|
Loading…
Reference in a new issue