Mac OS / Python · 2012-11-16

fixed gevent/libevent.h:9:19: error: event.h: No such file or directory on mac os

1
2
3
4
sudo port install libevent CFLAGS="-I /opt/local/include -L /opt/local/lib"
pip install gevent
如果上述方法还是不行,请下载gevent源码解压后
sudo python setup.py install -I /opt/local/include/ -L /opt/local/lib
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
以下内容可忽略。。。。
sudo easy_install python_memcached
 
sudo easy_install mysql-python
 
brew install pil
 
brew install gevent
 
sudo ln -s /usr/local/mysql/lib/libmysqlclient.18.dylib /usr/lib/libmysqlclient.18.dylib
 
sudo easy_install pil
 
sudo easy_install sqlobject
 
sudo easy_install apnswrapper
1
sudo easy_install sqlalchemy
1
sudo pip install mysql-python
1
wget http://pypi.python.org/packages/source/M/MySQL-python/MySQL-python-1.2.4c1.zip#md5=a05925412cd824104da064db6a889613
1
unzip -d ./ MySQL-python-1.2.4c1.zip
1
vi setup_posix.py
1
mysql_config => /usr/local/mysql/bin/mysql_config
1