gpt4 book ai didi

installation - 无法在cloudera centos linux vm上安装sasl以从python连接到配置单元

转载 作者:太空宇宙 更新时间:2023-11-03 17:15:37 25 4
gpt4 key购买 nike

我想从 python 连接到 Hive 数据仓库。我正在尝试使用以下命令在我的 Cloudera VM (centos 6.7) 上安装 sasl(版本 0.2.1):

$sudo pip 安装 sasl

我收到以下错误信息:

Collecting sasl
Using cached sasl-0.2.1.tar.gz
Requirement already satisfied: six in ./anaconda3/lib/python3.5/site-packages (f
rom sasl)
Building wheels for collected packages: sasl
Running setup.py bdist_wheel for sasl: started
Running setup.py bdist_wheel for sasl: finished with status 'error'
Complete output from command /home/cloudera/anaconda3/bin/python -u -c "import
setuptools, tokenize;__file__='/tmp/pip-build-cu3nu05u/sasl/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/tmpz1j86agrpip-wheel
....
building 'sasl.saslwrapper' extension
creating build/temp.linux-x86_64-3.5
creating build/temp.linux-x86_64-3.5/sasl
gcc -pthread -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -
Wstrict-prototypes -fPIC -Isasl -I/home/cloudera/anaconda3/include/python3.5m -c
sasl/saslwrapper.cpp -o build/temp.linux-x86_64-3.5/sasl/saslwrapper.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C
/ObjC but not for C++
In file included from sasl/saslwrapper.cpp:254:
sasl/saslwrapper.h:22:23: error: sasl/sasl.h: No such file or directory
In file included from sasl/saslwrapper.cpp:254:
sasl/saslwrapper.h:145: error: ‘sasl_interact_t’ has not been declared
sasl/saslwrapper.h:148: error: ‘sasl_conn_t’ has not been declared
...
----------------------------------------
Running setup.py clean for sasl
Failed to build sasl
Installing collected packages: sasl
Running setup.py install for sasl: started
Running setup.py install for sasl: finished with status 'error'

有人知道为什么cloudera centos 6.7无法安装sasl吗?

谢谢,

ds2000

最佳答案

你还需要安装 cyrus-sasl-devel。

这是我必须添加的内容:

# yum install python-pip gcc gcc-c++ python-virtualenv cyrus-sasl-devel

在那之后,pip install sasl 成功了。

关于installation - 无法在cloudera centos linux vm上安装sasl以从python连接到配置单元,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43966812/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com