【发布时间】:2017-10-13 11:45:49
【问题描述】:
我想从 python 连接到 Hive 数据仓库。我正在尝试使用以下命令在我的 Cloudera VM(centos 6.7)上安装 sasl(0.2.1 版):
$sudo pip install 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'
有人知道为什么 sasl 不能在 Cloudera centos 6.7 上安装吗?
谢谢,
ds2000
【问题讨论】:
-
您需要先安装实际的 sasl 而不仅仅是 python 绑定。
-
谢谢。您能否详细说明如何安装 sasl 本身?我尝试了以下命令: $sudo yum install sasl 但它告诉我没有可用的软件包 sasl。
-
先搜索
-
是的,我什至在此处发布原始问题之前已经进行了一些搜索。我能找到的只是如何安装 Postfix 或 cyrus-sasl,这些都是我阅读的与电子邮件服务器相关的软件。我只需要安装 sasl,这样我就可以使用 impyla 从 python 连接到 Hive。
标签: installation centos sasl