首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >sasl/saslwrapper.h:22:23:致命错误: sasl/sasl.h:没有这样的文件或目录

sasl/saslwrapper.h:22:23:致命错误: sasl/sasl.h:没有这样的文件或目录
EN

Stack Overflow用户
提问于 2018-02-01 20:05:55
回答 2查看 17.5K关注 0票数 20

我有操作系统

代码语言:javascript
复制
Red Hat Enterprise Linux Server release 7.4 (Maipo)

和python

代码语言:javascript
复制
Python 2.7.13 :: Anaconda 4.4.0 (64-bit)

已尝试安装lib sasl

sudo pip install sasl

代码语言:javascript
复制
Collecting sasl
  Downloading http://repo.com/api/pypi/pypi/packages/8e/2c/45dae93d666aea8492678499e0999269b4e55f1829b1e4de5b8204706ad9/sasl-0.2.1.tar.gz
Collecting six (from sasl)
  Downloading http://repo.com/api/pypi/pypi/packages/67/4b/141a581104b1f6397bfa78ac9d43d8ad29a7ca43ea90a2d863fe3056e86a/six-1.11.0-py2.py3-none-any.whl
Installing collected packages: six, sasl

    building 'sasl.saslwrapper' extension
    creating build/temp.linux-x86_64-2.7
    creating build/temp.linux-x86_64-2.7/sasl
    gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Isasl -I/usr/include/python2.7 -c sasl/saslwrapper.cpp -o build/temp.linux-x86_64-2.7/sasl/saslwrapper.o
    In file included from sasl/saslwrapper.cpp:254:0:
    sasl/saslwrapper.h:22:23: fatal error: sasl/sasl.h: No such file or directory
     #include <sasl/sasl.h>
                           ^
    compilation terminated.
    error: command 'gcc' failed with exit status 1

    ----------------------------------------
Command "/usr/bin/python2 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-Ym7ZOA/sasl/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-_8ahws-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-Ym7ZOA/sasl/

如何解决这个问题?

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2018-02-21 10:46:47

this issue中,您似乎需要libsasl2

您可以使用以下命令安装libsasl2 :-

代码语言:javascript
复制
sudo apt-get install libsasl2-dev
票数 31
EN

Stack Overflow用户

发布于 2018-04-07 10:37:03

如果您使用的是AWSEC2/EMR或CentOS,sudo yum install cyrus-sasl-devel

票数 39
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/48562383

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档