-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathinstall.sh
More file actions
54 lines (44 loc) · 1.81 KB
/
Copy pathinstall.sh
File metadata and controls
54 lines (44 loc) · 1.81 KB
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
#!/bin/bash
# docker run -it -v "$(pwd)"/release2/:/release --name coherence_rd ubuntu:latest /bin/bash
# apt-get update
# apt-get install -y libssl-dev argon2 libargon2-dev
# cp libs & bin
# docker rmi liesware/coherence:rd
# docker commit coherence_rd liesware/coherence:rd
# docker login
# docker push liesware/coherence:rds
apt-get update
DEBIAN_FRONTEND="noninteractive" apt-get install -y autoconf automake gcc g++ make libtool git wget unzip xsltproc libssl-dev bzip2 valgrind doxygen graphviz python3 python3-pip cmake libcurl4-openssl-dev cmake gcc ninja-build libssl-dev python3-pytest python3-pytest-xdist unzip xsltproc doxygen graphviz git wget libargon2-dev pkg-config meson astyle python3-yaml
cd core/lib/
mkdir cryptopp
cd cryptopp
wget https://github.com/weidai11/cryptopp/releases/download/CRYPTOPP_8_9_0/cryptopp890.zip
unzip cryptopp890.zip
make libcryptopp.a libcryptopp.so
cd ..
git clone https://github.com/Tencent/rapidjson.git
wget https://github.com/open-quantum-safe/liboqs/archive/refs/tags/0.15.0.zip
unzip 0.15.0.zip
mv liboqs-0.15.0 liboqs
mv 0.15.0.zip liboqs
cd liboqs
mkdir build && cd build
cmake -DBUILD_SHARED_LIBS=ON -GNinja ..
ninja
cd ../../
git clone https://github.com/open-quantum-safe/liboqs-cpp
sed -i '41 i std::string LIBOQS_CPP_VERSION="0.10.1";' liboqs-cpp/include/common.hpp
git clone https://github.com/pistacheio/pistache.git
cd pistache
meson setup build
meson compile -C build
cd ../../
mkdir bin
make
cp lib/pistache/build/src/libpistache.so /lib/x86_64-linux-gnu/libpistache.so.0.5
cp lib/cryptopp/libcryptopp.so.8.9.0 /lib/x86_64-linux-gnu/libcryptopp.so.8
cp lib/liboqs/build/lib/liboqs.so /lib/x86_64-linux-gnu/liboqs.so.9
ls -lha /lib/x86_64-linux-gnu/libpistache.so.0.5
ls -lha /lib/x86_64-linux-gnu/libcryptopp.so.8
ls -lha /lib/x86_64-linux-gnu/liboqs.so.9
ldd bin/coherence