zoukankan      html  css  js  c++  java
  • airflow 执行pip3 install apache-airflow[hive]报错

    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/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-7tl_w2pb/sasl/setup.py';f=getattr(tokenize,
    'open', open)(__file__);code=f.read().replace(' ', ' ');f.close();exec(compile(code, __file__, 'exec'))" install --record
    /tmp/pip-t21oqvty-record/install-record.txt --single-version-externally-managed --compile
    " failed with error code 1 in
    /tmp/pip-build-7tl_w2pb/sasl/

    解决方法

    yum install gcc libffi-devel python-devel openssl-devel -y

    yum python3-devel -y
    yum search sasl
    
    yum -y install cyrus-sasl cyrus-sasl-devel cyrus-sasl-lib
    
    重新安装
    pip3 install apache-airflow[hive]
  • 相关阅读:
    字符串、组合练习
    national flag
    常用的Linux操作
    大数据概述
    LL(1)文法
    简单有穷自动机
    简单C语言文法
    词法分析
    编译原理 141
    综合练习
  • 原文地址:https://www.cnblogs.com/gcixx/p/13600931.html
Copyright © 2011-2022 走看看