forked from Kingsford-Group/bloomtree
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathPREQ_INSTALL
53 lines (38 loc) · 1.34 KB
/
PREQ_INSTALL
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
47
48
49
50
51
52
53
#!/bin/bash
# hopefully these steps will run automatically without problem, but in case the script stops somewhere, at least you know what are roughly the steps to install the dependencies
# tested on centos 7, gcc 4.8.6
mkdir deps
cd deps
set -e
# jellyfish
wget https://github.com/gmarcais/Jellyfish/releases/download/v2.2.6/jellyfish-2.2.6.tar.gz
tar xf jellyfish-2.2.6.tar.gz
cd jellyfish-2.2.6
./configure --prefix=$HOME
make -j 4
make install
cd ..
# sdsl lite
# note: older versions of sdsl-lite (before Nov/8/2016) required a patch. The
# patch has been commented out in the step below, because the modification has
# been committed to the sdsl-lite repositiory
git clone --recursive https://github.com/simongog/sdsl-lite.git
cd sdsl-lite
#patch -p1 -i ../PREQ_INSTALL.sdsl-lite.patch
./install.sh
cd ..
# roaring
# note: if the cmake step fails with this error
# cc1: error: unrecognized command line option "-std=c11"
# you probably need to change the cmake command line to this:
# cmake -DCMAKE_INSTALL_PREFIX:PATH=$HOME -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ ..
git clone https://github.com/RoaringBitmap/CRoaring.git
cd CRoaring
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX:PATH=$HOME ..
make install
cd ..
cd ..
echo "don't forget to type (or add to ~/.bashrc): "
echo "export LD_LIBRARY_PATH=$HOME/lib:\$LD_LIBRARY_PATH"