1. 程式人生 > >python 安裝superset:error: Setup script exited with error: command 'gcc' failed with exit status 1

python 安裝superset:error: Setup script exited with error: command 'gcc' failed with exit status 1

python 安裝superset

錯誤提示如下:

atal error: sasl/sasl.h: No such file ordirectory

 #include <sasl/sasl.h>

                       ^

compilation terminated.

error: Setup script exited with error:command 'gcc' failed with exit status 1

解決辦法:

經查發現是沒有安裝sasl的開發庫,所以需要安裝下,stackoverflow上說安裝一個libsasl2-dev,用yum沒找到,然後使用sasl和dev關鍵字篩選了下,得到了一個libgsasl-devel,然後就裝上試了試,就ok了。

yum install libgsasl-devel

yum install cyrus-sasl-devel.x86_64