1. git clone https://github.com/osu-crypto/MultipartyPSI.git
2. cd thirdparty/
3. bash all_linux.get
4. cd ..
5. cmake .
6. make -j
7. ./bin/frontend.exe -n 5 -t 2 -m 12 -p 0 & ./bin/frontend.exe -n 5 -t 2 -m 12 -p 1 & ./bin/frontend.exe -n 5 -t 2 -m 12 -p 2 & ./bin/frontend.exe -n 5 -t 2 -m 12 -p 3 & ./bin/frontend.exe -n 5 -t 2 -m 12 -p 4
一、gcc7.0的安装:
二、其他安装包相关的安装:
git:
yum install -y git
all_linux.get注意:sudo yum -y install libboost-all-dev替换为
yum install boost-devel
bash boost.get:若出现下载错误要以不安全的方式连接至 sourceforge.net,使用“--no-check-certificate”,用vim改一下boost.get文件(‘I’键插入,‘esc’+‘:wq’保存退出)。
wget -c 'http://sourceforge.net/projects/boost/files/boost/1.64.0/boost_1_64_0.tar.bz2/download' -O ./boost_1_64_0.tar.bz2 --no-check-certificate
二进制文件无法执行,有一个文件名字错了(真的服),名字改一下再bash!
/home/tdops/build/abc/mPSI-TableOPPRF/thirdparty/miracl.get
bash linux64 ===> bash linux64_cpp
cmake安装参考,可能会报错,缺啥安装啥,lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found日志错误里面有解释。
cmake .这一步有问题需要比如无法识别c++14,方案是修改路径:
cmake -DCMAKE_CXX_COMPILER=/path/to/your/g++ .
其中g++路径用,试一下。
whereis g++
开始make一下:有点小问题,:‘string’不是命名空间‘std’中的一个类型名。
是代码有点问题,解决方法,找到MultipartyPSI/frontend/CLP,vim改一下,加入调用:
#include<iostream>
然后在make一下,
终于结束了!!!看一下结果(历时一周)!