【问题标题】:Error Installing Ice 3.6 for Python on Ubuntu 16.04在 Ubuntu 16.04 上为 Python 安装 Ice 3.6 时出错
【发布时间】:2017-01-10 10:32:11
【问题描述】:

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

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

我在 python 2.7 中使用了 anaconda2。

【问题讨论】:

  • 在尝试了各种在 ubuntu 上安装 ice 的解决方案后,pip 工作了

标签: python ubuntu-16.04 ice


【解决方案1】:

安装openssl后问题解决了

sudo apt-get install libssl-dev

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-05-12
    • 1970-01-01
    • 2016-12-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多