Elast Alert warning: no files found matching 'blist.rst' blist/_blist.c:38:20: fatal error: Python.h: No such file or directory include
Olá, meu caro.
Esta postagem é para auxiliar pessoas que tiveram problemas na execução do ElastAlert. Segue;
PROBLEMA
[root@isweluiz elastalert]# python3.4 setup.py install
running install
running bdist_egg
.
.
.
Installed /usr/lib/python3.4/site-packages/elastalert-0.2.1-py3.4.egg
Processing dependencies for elastalert==0.2.1
Searching for blist>=1.3.6
Reading https://pypi.org/simple/blist/
Downloading https://files.pythonhosted.org/packages/6b/a8/dca5224abe81ccf8db81f8a2ca3d63e7a5fa7a86adc198d4e268c67ce884/blist-1.3.6.tar.gz#sha256=3a12c450b001bdf895b30ae818d4d6d3f1552096b8c995f0fe0c74bef04d1fc3
Best match: blist 1.3.6
Processing blist-1.3.6.tar.gz
Writing /tmp/easy_install-nu18tqua/blist-1.3.6/setup.cfg
Running blist-1.3.6/setup.py -q bdist_egg --dist-dir /tmp/easy_install-nu18tqua/blist-1.3.6/egg-dist-tmp-wf0lvx76
warning: no files found matching 'blist.rst'
blist/_blist.c:38:20: fatal error: Python.h: No such file or directory
#include
^
compilation terminated.
error: Setup script exited with error: command 'gcc' failed with exit status 1
[root@isweluiz elastalert]# blist
bash: blist: command not found
Solução
Pacotes e dependências, vale verificar se os seguintes pacotes estão instalados:
- Python3.4
- Python34-devel
- Python-rpm-macros
- Python-blist
[root@isweluiz elastalert]# yum install http://rpmfind.net/linux/epel/7/x86_64/Packages/p/python34-devel-3.4.10-4.el7.x86_64.rpm -y
Dependencies Resolved
==================================================================================================================================================================================================
Package Arch Version Repository Size
==================================================================================================================================================================================================
Installing:
python34-devel x86_64 3.4.10-4.el7 /python34-devel-3.4.10-4.el7.x86_64 559 k
Installing for dependencies:
python-rpm-macros noarch 3-15.el6 _Epel_CentOS_6 6.7 k
python-srpm-macros noarch 3-15.el6 _Epel_CentOS_6 5.9 k
python3-other-rpm-macros noarch 3-26.el7 _Epel_CentOS_7 7.0 k
Transaction Summary
[root@isweluiz elastalert]# python3.4 setup.py install
running install
running bdist_egg
.
.
.
.
Using /usr/lib/python3.4/site-packages
Finished processing dependencies for elastalert==0.2.1
[root@isweluiz elastalert]# elastalert
elastalert elastalert-create-index elastalert-rule-from-kibana elastalert-test-rule
Problemas relacionados
- https://medium.com/@logan.81k/elastalert-blist-blist-c-38-20-fatal-error-python-h-no-such-file-or-directory-f415588ef301
- https://github.com/Yelp/elastalert/issues/551
- https://www.cnblogs.com/bigben0123/p/10043132.html
- https://gitter.im/Yelp/elastalert?at=57fe21304fde7203142e0adc
No comments