Error prompts for using PIP installation gevent in Mac OS x:
Fatal error: ' event.h ' File not found
This is because Gevent is built on top of the Libevent library and the Event.h header file must be installed in Libevent,libevent.
You can use MacPorts to install libevent, which commands the following:
sudo port install libevent
Then manually add event.h and libevent to the CFLAGS environment variable:
cflags= "-i/opt/local/include-l/opt/local/lib" pip install Gevent
Install Gevent in Ubuntu:
First install libevent, libevent.org download the latest stable version libevent-2.0.21-stable.tar.gz, extract the contents of the compressed package.
Into the unpacked folder:
ifantastic@ubuntu:~/libevent/libevent-2.0.12-stable$./configure
ifantastic@ubuntu:~/libevent/libevent-2.0.12-stable$ make
ifantastic@ubuntu:~/libevent/libevent-2.0.12-stable$ sudo make install
Next Install Gevent:
Ifantastic@ubuntu:sudo pip install gevent.
See more highlights of this column: http://www.bianceng.cnhttp://www.bianceng.cn/OS/other/