1 git clone git@github.com:ooibc88/blockbench.git 2 git clone git@github.com:mrtazz/restclient-cpp.git 3 进入 restclient-cpp 目录,patch -p4 < $BLOCK_BENCH_HOME/benchmark/parity/patch_restclient $BLOCK_BENCH_HOME 修改为本机上的对应文件目录 4. /autogen.sh 会报错,因为有一些库没有,百度下载即可解决 make install 会发现 没有 curllib 安装 curlib 会发现需要安装 openssh ,不同 ubuntu 都安装默认安装的 openssl 不同建议 用 curllib 7.78.0 + openssl 1.0.2g ● 安装 curllib https://blog.csdn.net/m0_37263637/article/details/79489321 ● 可通过 openssl version -a 查看版本 我的是 1.1.1 ● 安装 openssl 1.0.2g https://blog.csdn.net/coco_1998_2/article/details/96337465 6 从网络中https://curl.se/download/下载 curllib 7.78.0 , 然后 tar -xvf curl.XXX.gz ● andres@ubuntu1:/usr/local/curl-7.78.0$ ./configure --with-openssl=/usr/ ● make ● sudo make install 7 然后切换到 restClient-cpp 目录中 ● sudo make install 编译安装 8 然后切换到 /usr/local/blockbench/src/macro/kvstore make 但是又出现了以下问题 需要在 10 /usr/local/blockbench/src/macro/kvstore 目录下 修改 Makefile 文件 加入-lcurl 然后再进 make ,执行成功
patch -p4 < $BLOCK_BENCH_HOME/benchmark/parity/patch_restclient
$BLOCK_BENCH_HOME
/autogen.sh