1

我尝试通过 pip 为 python 安装 Ice 3.6:

pip install zeroc-ice

并得到这些错误:

Collecting zeroc-ice
  Using cached zeroc-ice-3.6.3.tar.gz
Building wheels for collected packages: zeroc-ice
  Running setup.py bdist_wheel for zeroc-ice ... error
  Complete output from command /home/phan/anaconda2/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-D__B7T/zeroc-ice/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmpKbigqspip-wheel- --python-tag cp27:
  WARNING: '' not a valid package name; please use only .-separated package names in setup.py
...
...
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
    src/ice/cpp/src/IceUtil/SHA1.cpp:19:31: fatal error: openssl/sha.h: Aucun fichier ou dossier de ce type
    compilation terminated.
    error: command 'gcc' failed with exit status 1

我将 anaconda2 用于 python 2.7。

4

1 回答 1

0

安装openssl后问题解决

sudo apt-get install libssl-dev
于 2017-01-10T11:11:44.417 回答