gevent/core.c:17653: 警告:隐式声明函数‘evhttp_free’
gevent/core.c: 在函数‘__pyx_pf_6gevent_4core_4http_6bind’中:
gevent/core.c:17886: 警告:隐式声明函数‘evhttp_bind_socket’
gevent/core.c: 在函数‘__pyx_pf_6gevent_4core_4http_8accept’中:
gevent/core.c:18002: 警告:隐式声明函数‘evhttp_accept_socket’
gevent/core.c: 在函数‘initcore’中:
gevent/core.c:22746: 错误:‘EVHTTP_REQ_GET’未声明(在此函数内第一次使用)
gevent/core.c:22764: 错误:‘EVHTTP_REQ_POST’未声明(在此函数内第一次使用)
gevent/core.c:22782: 错误:‘EVHTTP_REQ_HEAD’未声明(在此函数内第一次使用)
gevent/core.c:23045: 错误:‘EVHTTP_REQUEST’未声明(在此函数内第一次使用)
gevent/core.c:23057: 错误:‘EVHTTP_RESPONSE’未声明(在此函数内第一次使用)
gevent/core.c: 在文件层:
gevent/core.c:24479: 错误:expected ‘)’ before ‘val’
error: command ‘gcc’ failed with exit status 1
—————————————-
Command /usr/bin/python -c “import setuptools;__file__=’/tmp/pip-build-root/gevent/setup.py’;exec(compile(open(__file__).read().replace(‘\r\n’, ‘\n’), __file__, ‘exec’))” install –record /tmp/pip-ID3_Fv-record/install-record.txt –single-version-externally-managed failed with error code 1 in /tmp/pip-build-root/gevent
Storing complete log in /root/.pip/pip.log
解决方法:
[root@67 ~]# yum install libevent*
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.btte.net
* epel: mirrors.neusoft.edu.cn
* extras: mirrors.btte.net
* updates: centosi3.centos.org
Setting up Install Process
Resolving Dependencies
–> Running transaction check
—> Package libevent.i686 0:1.4.13-4.el6 will be installed
—> Package libevent-devel.i686 0:1.4.13-4.el6 will be installed
—> Package libevent-doc.noarch 0:1.4.13-4.el6 will be installed
—> Package libevent-headers.noarch 0:1.4.13-4.el6 will be installed
–> Finished Dependency Resolution
Dependencies Resolved
======================================================================================================================================
Package Arch Version Repository Size
======================================================================================================================================
Installing:
libevent i686 1.4.13-4.el6 base 67 k
libevent-devel i686 1.4.13-4.el6 base 71 k
libevent-doc noarch 1.4.13-4.el6 base 194 k
libevent-headers noarch 1.4.13-4.el6 base 30 k
Transaction Summary
======================