-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker_install_all.sh
111 lines (57 loc) · 1.61 KB
/
docker_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
#This makes it stop if an error is encountered
set -e
apt-get update -y
apt-get install gcc -y
apt-get install m4 -y --fix-missing
mkdir -p barvinok
cd barvinok
CWD=$(pwd)
#apt-get install software-properties-common
#yes "" | add-apt-repository ppa:webupd8team/java
#apt-get update
#apt-get install oracle-java8-installer
####################################################
# GMP
wget https://gmplib.org/download/gmp/gmp-6.1.0.tar.lz
apt-get install lzip -y
tar --lzip -xvf gmp-6.1.0.tar.lz
cd gmp-6.1.0
./configure --prefix=$HOME/sw
#Tal vez podria instalar solo make...
apt-get install build-essential -y
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
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 (???)
apt-get remove automake -y
apt-get install automake -y
./configure --prefix=$HOME/sw --with-gmp-prefix=$HOME/sw --with-ntl-prefix=$HOME/sw NTL_GMP_LIP=on
make
make check
make install
echo "Finished installing barvinok..."
cd ..
#cd ../dependencies
#sh install.sh
#cd ../java-project
#mvn install
#mvn clean compile
export CLASSPATH=$CLASSPATH:.