sagrawal87 / ABE

Attribute-based Encryption
MIT License
181 stars 67 forks source link

how do I run this code on Ubuntu 20? #17

Closed harshbisle closed 2 years ago

harshbisle commented 3 years ago

@sagrawal87 @alexkorpas @codymlewis please guide me I'm an absolute beginner

sagrawal87 commented 3 years ago

Hi Harsh. Do the instructions provided in the prerequisites section (of the README file) not work for you?

harshbisle commented 3 years ago

Hello, @sagrawal87 Thanks for responding :) Readme file is not working out for me :(

codymlewis commented 3 years ago

Hi Harsh, at which point is it not working? Have you been able to install charm?

harshbisle commented 3 years ago

Hello, @codymlewis Thanks for responding :) Everything works fine until I give the make and make install command to install charm

codymlewis commented 3 years ago

So the issue is with charm crypto and not this?

harshbisle commented 3 years ago

Yes, but I expected a solution from here as somebody might have encountered it recently

harshbisle commented 3 years ago

please give any alternatives or some links to help me set up the environment

codymlewis commented 3 years ago

Fair enough, only issue I encountered with compiling Charm was the openssl version thing. Assuming you have the same issue, there are two possible solutions, install charm crypto from your system package manager (not sure if it is available on ubuntus apt however), or downgrade your openssl from version 1.1 to 1.0.

harshbisle commented 3 years ago

Yeah, I am facing the same issue, as you said is it not safe to downgrade the OpenSSL version from 1.1 to 1.0? and system package manager is not available on my machine :(

codymlewis commented 3 years ago

Hmm, I would not recommend downgrading openssl unless you're desperate. Maybe you could use a docker image? An arch linux image would have charm crypto in the AUR.

harshbisle commented 3 years ago

I'm not familiar with the docker image or arch Linux

harshbisle commented 3 years ago

Now I have installed charm crypto on VM VB but I don't know how to test the samples. Is there any resource that I can refer to?

codymlewis commented 3 years ago

If you have python installed, you can just follow the README of this repository

harshbisle commented 3 years ago
rm -f -r pox3.egg-info/ dist/ build/
python3 setup.py sdist bdist_wheel
Traceback (most recent call last):
  File "setup.py", line 1, in <module>
    import setuptools
ImportError: No module named 'setuptools'
makefile:7: recipe for target 'setup' failed
make: *** [setup] Error 1

I got this when I make.

codymlewis commented 3 years ago

I see, could you try that again after running the following

pip install setuptools