forked from edgarfelizmenio/charm-crypto-test
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
51 lines (42 loc) · 780 Bytes
/
install.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
#! /bin/bash -x
apt-get install -y -q lzip
apt-get install -y -q flex bison
apt-get install -y -q python3-setuptools
apt-get install -y -q python3-dev
apt-get install -y -q python3.4-venv
cd ../CHARM-TEST
# Install GMP
tar --lzip -xvf gmp-6.1.2.tar.lz;
cd gmp-6.1.2;
./configure;
make;
make check;
make install; # sudo make install
# Install PBC from source
cd ..
tar -xvf pbc-0.5.14.tar.gz
cd pbc-0.5.14
./configure
./configure LDFLAGS="-lgmp"
make
make install
ldconfig
# Install OpenSSL
cd ..
tar -xvf openssl-1.1.0g.tar.gz
cd openssl-1.1.0g
./config
make
make test
make install
ldconfig
# Now we can build and install Charm:
cd ..
python3 -m venv env
source env/bin/activate
pip3 install --upgrade setuptools
cd charm
./configure.sh
make install
make test
pip3 freeze