Ubuntu 安装OpenABE

地址:GitHub - zeutro/openabe: The OpenABE library - open source cryptographic library with attribute-based encryption implementations in C/C++

简介:OpenABE 是一个密码库,其中包含各种基于属性的加密 (ABE) 算法、行业标准的密码功能和工具,以及直观的应用程序编程接口 (API)。OpenABE 旨在允许开发人员将 ABE 技术无缝地整合到将受益于 ABE 的应用程序中,以保护和控制对敏感数据的访问。OpenABE 旨在易于使用,并且不需要开发人员成为加密专家。

【安装步骤】

1. git clone 包

2. cd libopenabe-1.0.0/

3. sudo -E ./deps/install_pkgs.sh

4.   . ./env
5. 按照 README中 接下来是执行 make命令,但gtest安装会有问题,需手动提前安装gtest
1)sudo apt-get install libgtest-dev
2)sudo apt-get install cmake # install cmake
3)cd /usr/src/gtest
4)sudo cmake CMakeLists.txt
5)sudo make
 
# copy or symlink libgtest.a and libgtest_main.a to your /usr/lib folder
6) sudo cp lib/*.a /usr/li

7) 修改openabe中的内容
rename /deps/gtest/download_gtest.sh --> /deps/gtest/download_gtest.sh.bkp (or whatever you prefer)
comment out ./download_gtest.sh $(VERSION) from /deps/gtest/Makefile
comment out LDLIBS ?= -lgtest -lpthread from Makefile.common
remove gtest from: Makefile.common#L45(DEPS_PACKAGES = $(if $(USE_DEPS),$(USE_DEPS),relic openssl gtest))
change BISON = ${ZROOT}/bin/bison to BISON = /bin/bison from src/Makefile.inc

6. make

7. make test

8.  sudo -E make install

参考文档:
1. https://www.eriksmistad.no/getting-started-with-google-test-on-ubuntu/
2. https://github.com/zeutro/openabe/issues/61

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值