-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall_all.sh
112 lines (58 loc) · 1.58 KB
/
install_all.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
#This makes it stop if an error is encountered
set -e
sudo apt-get update
#Install maven to manage the project
sudo apt-get install maven
#Install java
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
#You will have to press enter to accept the installation
mkdir -p barvinok
cd barvinok
CWD=$(pwd)
####################################################
# GMP
wget https://gmplib.org/download/gmp/gmp-6.1.0.tar.lz
sudo apt-get install lzip
tar --lzip -xvf gmp-6.1.0.tar.lz
cd gmp-6.1.0
./configure --prefix=$HOME/sw
make
make check
make install
######################################################
#NTL
cd ..
wget http://www.shoup.net/ntl/ntl-6.2.1.tar.gz
tar -xvzf ntl-6.2.1.tar.gz
cd ntl-6.2.1/src
./configure PREFIX=$HOME/sw GMP_PREFIX=$HOME/sw/ NTL_GMP_LIP=on NTL_STD_CXX=on
make
make check
make install
###################################################
#Barvinok
cd ~/Downloads
mkdir -p barvinok
cd barvinok
wget -P . http://barvinok.gforge.inria.fr/barvinok-0.39.tar.bz2
tar -xvjf barvinok-0.39.tar.bz2
cd barvinok-0.39
#It whines about automake 1.14 but after reinstalling apparently it works...
#No, in reality it works to install it outside the folder (???)
sudo apt-get remove automake
sudo apt-get install automake
./configure --prefix=$HOME/sw --with-gmp-prefix=$HOME/sw --with-ntl-prefix=$HOME/sw NTL_GMP_LIP=on
make
make check
make install
cd ..
mv barvinok-0.39 $CWD
cd $CWD
cd ../dependencies
sh install.sh
cd ../java-project
mvn install
mvn clean compile
export CLASSPATH=$CLASSPATH:.