zeutro / openabe

The OpenABE library - open source cryptographic library with attribute-based encryption implementations in C/C++
http://www.zeutro.com
GNU Affero General Public License v3.0
262 stars 71 forks source link

Error while install openabe #63

Open FMoLeons opened 3 years ago

FMoLeons commented 3 years ago

When installing openabe above ubuntu 20.04, an error occurred. 屏幕截图 2021-11-01 225106

ChantMisaya commented 3 years ago

You can try it as I have modified it, on my computer it works like this. Hopefully it will work on your computer too!

bot@ubuntu:~/openabe$ sudo apt-get install libssl-dev

bot@ubuntu:~/openabe$ vim Makefile.common 
    Line 6: LDLIBS ?= -lpthread
    Line 58: DEPS_PACKAGES = $(if $(USE_DEPS),$(USE_DEPS),relic openssl)

bot@ubuntu:~/openabe$ vim deps/gtest/download_gtest.sh 
    Line 10: GTEST_LINK=https://github.com/google/googletest/archive/refs/tags/release-${VERSION}.zip
    Line 13: wget -O ${GTEST_VERSION} ${GTEST_LINK} --no-check-certificate

bot@ubuntu:~/openabe$ vim src/Makefile.inc 
    Line 9: BISON = /bin/bison

bot@ubuntu:~/openabe$ vim deps/Makefile 
    Line 18: for d in relic openssl; do \
    Line 24: for d in relic openssl; do \

bot@ubuntu:~/openabe$ vim src/Makefile
    Line 58: bison -d -v zparser.yy
kburova commented 2 years ago

Hello there. I have the same error when trying to install this library (Ubuntu 22.04). The solution suggested by ChantMisaya didn't work for me. Are there any other suggestions or any ideas on how to fix this? Thank you

StefanoBerlato commented 2 years ago

Hi! Unfortunately, this repository seems to not be maintained anymore. However, I am trying to make the library usable again: I updated the dependencies and the build scripts to develop bindings for Kotlin (see https://github.com/StefanoBerlato/kotlin-multiplatform-openabe/tree/main). If you are not interested in Kotlin, you can just have a look at the build process for the library, I hope this can help you :)

ChantMisaya commented 2 years ago

Hello there. I have the same error when trying to install this library (Ubuntu 22.04). The solution suggested by ChantMisaya didn't work for me. Are there any other suggestions or any ideas on how to fix this? Thank you

Hi kburova, I'm not sure which version of Ubuntu 22.04 you installed. If you have installed ARM based Ubuntu, you can try my solution on X86 Ubuntu. As StefanoBerlato said, this repository seems not to be maintained anymore:(

yummycoder commented 1 year ago

In my case, I use gcc-9 instead of gcc-11 to solve this problem. This problem is caused by failed installing Relic. It seems that there are some conflicts between bls-signatures and Relic on that version. https://github.com/Chia-Network/bls-signatures/issues/194