安装适用于Python3的Charm-Crypto的问题 [英] Problem with installing Charm-Crypto for Python3

查看:242
本文介绍了安装适用于Python3的Charm-Crypto的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,程序员, 目前,我正在尝试在Ubuntu上安装 Charm-Crypto 0.43 .不幸的是,似乎没有任何工作.我尝试了链接的手动安装以及pip install charm-crypto

Hello fellow Programmers, currently I am trying to install Charm-Crypto 0.43 on my Ubuntu. Unfortunately nothing seems to work. I tried the linked manual install, as well as pip install charm-crypto

我总是收到此错误日志:

I always get this Error log:

[...]
running build_ext
    building 'charm.core.math.pairing' extension
    creating build/temp.linux-x86_64-3.6
    creating build/temp.linux-x86_64-3.6/charm
    creating build/temp.linux-x86_64-3.6/charm/core
    creating build/temp.linux-x86_64-3.6/charm/core/math
    creating build/temp.linux-x86_64-3.6/charm/core/math/pairing
    creating build/temp.linux-x86_64-3.6/charm/core/utilities
    creating build/temp.linux-x86_64-3.6/charm/core/benchmark
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBENCHMARK_ENABLED=1 -Icharm/core/utilities/ -Icharm/core/benchmark/ -I/usr/include/python3.6m -I/home/debbi/Documents/env/01_chainmed/include/python3.6m -c charm/core/math/pairing/pairingmodule.c -o build/temp.linux-x86_64-3.6/charm/core/math/pairing/pairingmodule.o
    In file included from charm/core/math/pairing/pairingmodule.c:30:0:
    charm/core/math/pairing/pairingmodule.h:38:10: fatal error: pbc/pbc.h: No such file or directory
     #include <pbc/pbc.h>
              ^~~~~~~~~~~
    compilation terminated.
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

    ----------------------------------------
Command "/home/debbi/Documents/env/01_chainmed/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-wfcawqbr/charm-crypto/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-pfeoo7we/install-record.txt --single-version-externally-managed --compile --install-headers /home/debbi/Documents/env/01_chainmed/include/site/python3.6/charm-crypto" failed with error code 1 in /tmp/pip-install-wfcawqbr/charm-crypto/

我尝试了所有建议的python-dev和libssl等安装.我可以通过谷歌搜索找到(

I tried every suggested install of python-dev and libssl etc. I could find by googling (this, and this, and this just to name a view). I also tried installing it using python2.7 and 3.6 Unfortunately nothing worked for me.

也许有人知道这个问题吗?

Maybe anyone knows this Problem?

谢谢您的时间.

推荐答案

有此网站: http://pages.cs.wisc.edu/~ace/install-charm.html 只需按照说明进行操作,但是对我来说,我必须手动检出Charm-0.50 dev分支,然后安装此版本.

There is this Website: http://pages.cs.wisc.edu/~ace/install-charm.html Just follow the Instructions, but for me I had to manually check out the Charm-0.50 dev branch and then install this version.

这篇关于安装适用于Python3的Charm-Crypto的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆