-
Notifications
You must be signed in to change notification settings - Fork 7
/
prepare.sh
executable file
·43 lines (35 loc) · 1018 Bytes
/
prepare.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
# TODO: rewite everything in Python
# It is easier to maintain and incorporate with my other scripts.
export RS_HOME=`pwd`
export LDFLAGS="-L$RS_HOME/lib/gflags-2.0/.libs/ -L$RS_HOME/lib/glog-0.3.3/.libs/"
export CPPFLAGS="-I$RS_HOME/lib/gflags-2.0/src/ -I$RS_HOME/lib/glog-0.3.3/src/"
mkdir -p lib
cd lib
wget --no-check-certificate https://protobuf.googlecode.com/files/protobuf-2.5.0.tar.gz
tar zxf protobuf-2.5.0.tar.gz
cd protobuf-2.5.0
./configure --prefix=`pwd`/../../third_party/
make -j8
make install
cd python
python setup.py build
python setup.py install
cd ..
cd ..
pip install leveldb protobuf pyfasta
# install gtest
wget http://googletest.googlecode.com/files/gtest-1.7.0.zip
unzip gtest-1.7.0.zip
wget --no-check-certificate https://gflags.googlecode.com/files/gflags-2.0.zip
unzip gflags-2.0.zip
cd gflags-2.0
./configure
make
cd ..
wget --no-check-certificate https://google-glog.googlecode.com/files/glog-0.3.3.tar.gz
tar zxf glog-0.3.3.tar.gz
cd glog-0.3.3
./configure
make
cd ..
cd ..