forked from wwylab/MuSE
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall_muse.sh
executable file
·68 lines (47 loc) · 899 Bytes
/
install_muse.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/bin/bash
make clean
mkdir -p lib
# compile boost library
cd boost_1_70_0/
./bootstrap.sh
./b2 --clean
./b2
cp stage/lib/libboost_iostreams.a ../lib/
cd ..
# compile libtcmalloc
if [ -d "gperftools" ]
then
chmod -R 755 gperftools
rm -rf gperftools
fi
git clone https://github.com/gperftools/gperftools.git
cd gperftools
git checkout gperftools-2.9.1
./autogen.sh
./configure --libdir="$PWD"
make j4
make install
cp libtcmalloc_minimal.a ../lib/
cd ..
# combine htslib
if [ -d "htslib" ]
then
chmod -R 755 htslib
rm -rf htslib
fi
git clone https://github.com/samtools/htslib.git
cd htslib
git checkout 1.9
#git submodule update --init --recursive
autoreconf -i
./configure
make -j4
cp libhts.a ../lib/
cd ..
make
#clean htslib and gperftools and boost libraries
rm -r boost_1_70_0/stage
chmod -R 755 gperftools
rm -r gperftools
chmod -R 755 htslib
rm -r htslib