-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
37 lines (36 loc) · 1.03 KB
/
setup.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
#!/bin/env sh
sudo apt-get update
sudo apt-get -y install check
# alternatively git clone [email protected]:gnutls/libtasn1.git
sudo apt-get -y install libtasn1-6-dev libtasn1-bin
git clone https://github.com/jadeblaquiere/ecclib.git
cd ecclib
autoreconf --install
./configure --prefix=/usr
make
sudo make install
cd ..
git clone https://github.com/blynn/pbc.git
cd pbc
autoreconf --install
./configure --prefix=/usr --enable-safe-clean
make
sudo make install
cd ..
# libpopt, libb64, libsodium used for examples only
# alternatively brew install popt
sudo apt-get -y install libpopt-dev
# alternatively https://github.com/transmission/libb64.git
sudo apt-get -y install libb64-dev
# need to build libsodium from source - expect v1.0.16
# alternatively https://github.com/jedisct1/libsodium.git
mkdir sodium-build
cd sodium-build
wget http://archive.ubuntu.com/ubuntu/pool/main/libs/libsodium/libsodium_1.0.16.orig.tar.gz
tar xvf libsodium_1.0.16.orig.tar.gz
cd libsodium-1.0.16
autoreconf --install
./configure --prefix=/usr
make
sudo make install
cd ../..