Commit c016f7a6 authored by Aditya Damodaran's avatar Aditya Damodaran
Browse files

Fixed install scripts

parent 25c04ff3
#!/bin/bash
# SPDX-FileCopyrightText: 2021 University of Luxembourg
# SPDX-License-Identifier: CC0-1.0
# SPDXVersion: SPDX-2.2
sudo apt-get update
sudo apt-get install -y openssl gcc python3.6 python3-pip flex bison byacc git cmake libssl-dev
mkdir requirements && cd requirements
wget https://gmplib.org/download/gmp/gmp-6.2.1.tar.xz
wget https://crypto.stanford.edu/pbc/files/pbc-0.5.14.tar.gz
git clone "https://github.com/JHUISI/charm.git"
tar -xvf gmp-6.2.1.tar.xz
tar -xvf pbc-0.5.14.tar.gz
cd gmp-6.2.1
./configure
make
sudo make install
cd ..
cd pbc-0.5.14
./configure
make
sudo make install
cd ..
cd charm/charm/core/math/pairing/relic
wget https://github.com/relic-toolkit/relic/archive/relic-toolkit-0.5.0.tar.gz
tar -xvf relic-toolkit-0.5.0.tar.gz
mkdir relic-target && cd relic-target
sudo ../buildRELIC.sh ../relic-relic-toolkit-0.5.0/
cd ../../../../../../
./configure.sh --enable-pairing-relic
make
sudo make install
sudo ldconfig -v
cd ../../
python3.6 -m pip install -r requirements.txt
#!/bin/bash
# SPDX-FileCopyrightText: 2021 University of Luxembourg
# SPDX-License-Identifier: CC0-1.0
# SPDXVersion: SPDX-2.2
sudo apt-get update
sudo apt-get install -y openssl gcc python3.6 python3-pip flex bison byacc git cmake libssl-dev
mkdir requirements && cd requirements
wget https://gmplib.org/download/gmp/gmp-6.2.1.tar.xz
wget https://crypto.stanford.edu/pbc/files/pbc-0.5.14.tar.gz
git clone "https://github.com/JHUISI/charm.git"
tar -xvf gmp-6.2.1.tar.xz
tar -xvf pbc-0.5.14.tar.gz
cd gmp-6.2.1
./configure
make
sudo make install
cd ..
cd pbc-0.5.14
./configure
make
sudo make install
cd ..
cd charm/charm/core/math/pairing/relic
wget https://github.com/relic-toolkit/relic/archive/relic-toolkit-0.5.0.tar.gz
tar -xvf relic-toolkit-0.5.0.tar.gz
mkdir relic-target && cd relic-target
sudo ../buildRELIC.sh ../relic-relic-toolkit-0.5.0/
cd ../../../../../../
./configure.sh --enable-pairing-relic
make
sudo make install
sudo ldconfig -v
cd ../../
python3.6 -m pip install -r requirements.txt
python3.6 ./protocol.py -h
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment