JHUISI / charm

Charm: A Framework for Rapidly Prototyping Cryptosystems
http://charm-crypto.io
GNU Lesser General Public License v3.0
542 stars 166 forks source link

make install failed #256

Closed tha061 closed 3 years ago

tha061 commented 3 years ago

Hi all,

My system: Ubuntu 18.04.2 python 3.6.9 I installed gmp-6.2.0, pbc-0.5.14 and openssl-1.0.2l. I tried to install this version "Charm-Crypto-0.42.tar.gz." https://github.com/JHUISI/charm/downloads However, I got the error below.

/usr/bin/python3 setup.py install Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.24.tar.gz Traceback (most recent call last): File "/home/sec-user/ThamNguyen/Charm-Crypto-0.42/distribute_setup.py", line 143, in use_setuptools raise ImportError ImportError

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "setup.py", line 2, in use_setuptools() #bootstrap installs Distribute if not installed src = urlopen(url) File "/usr/lib/python3.6/urllib/request.py", line 223, in urlopen return opener.open(url, data, timeout) File "/usr/lib/python3.6/urllib/request.py", line 532, in open response = meth(req, response) File "/usr/lib/python3.6/urllib/request.py", line 642, in http_response 'http', request, response, code, msg, hdrs) File "/usr/lib/python3.6/urllib/request.py", line 570, in error return self._call_chain(args) File "/usr/lib/python3.6/urllib/request.py", line 504, in _call_chain result = func(args) File "/usr/lib/python3.6/urllib/request.py", line 650, in http_error_default raise HTTPError(req.full_url, code, msg, hdrs, fp) urllib.error.HTTPError: HTTP Error 403: SSL is required Makefile:96: recipe for target 'install' failed make: *** [install] Error 1

Have you encountered this error? I did some workaround but couldn't find a solution. Any help would be much appreciated.

tha061 commented 3 years ago

For those who are having the same problem installing charm: Following the instruction below let you install the latest version of charm in one minute.

https://github.com/JHUISI/charm/commit/1247912e721ba99111f1ae9dbdc96b693ba0a111