﻿{"id":1021,"date":"2012-11-16T15:45:29","date_gmt":"2012-11-16T07:45:29","guid":{"rendered":"http:\/\/nick.workao.org\/?p=1021"},"modified":"2012-11-30T15:49:30","modified_gmt":"2012-11-30T07:49:30","slug":"fixed-geventlibevent-h919-error-event-h-no-such-file-or-directory-on-mac-os","status":"publish","type":"post","link":"http:\/\/nick.txtcc.com\/index.php\/python\/1021","title":{"rendered":"fixed gevent\/libevent.h:9:19: error: event.h: No such file or directory on mac os"},"content":{"rendered":"<pre lang=\"shell\" line=\"1\">sudo port install libevent CFLAGS=\"-I \/opt\/local\/include -L \/opt\/local\/lib\"\npip install gevent\n\u5982\u679c\u4e0a\u8ff0\u65b9\u6cd5\u8fd8\u662f\u4e0d\u884c\uff0c\u8bf7\u4e0b\u8f7dgevent\u6e90\u7801\u89e3\u538b\u540e\nsudo python setup.py install -I \/opt\/local\/include\/ -L \/opt\/local\/lib<\/pre>\n<pre lang=\"shell\" line=\"1\">\u4ee5\u4e0b\u5185\u5bb9\u53ef\u5ffd\u7565\u3002\u3002\u3002\u3002\nsudo easy_install python_memcached\n\nsudo easy_install mysql-python\n\nbrew install pil\n\nbrew install gevent\n\nsudo ln -s \/usr\/local\/mysql\/lib\/libmysqlclient.18.dylib \/usr\/lib\/libmysqlclient.18.dylib\n\nsudo easy_install pil\n\nsudo easy_install sqlobject\n\nsudo easy_install apnswrapper<\/pre>\n<pre lang=\"shell\" line=\"1\">sudo easy_install sqlalchemy<\/pre>\n<pre lang=\"shell\" line=\"1\">sudo pip install mysql-python<\/pre>\n<pre lang=\"shell\" line=\"1\">wget http:\/\/pypi.python.org\/packages\/source\/M\/MySQL-python\/MySQL-python-1.2.4c1.zip#md5=a05925412cd824104da064db6a889613<\/pre>\n<pre lang=\"shell\" line=\"1\">unzip -d .\/ MySQL-python-1.2.4c1.zip<\/pre>\n<pre lang=\"shell\" line=\"1\">vi setup_posix.py<\/pre>\n<pre lang=\"shell\" line=\"1\">mysql_config => \/usr\/local\/mysql\/bin\/mysql_config<\/pre>\n<pre lang=\"shell\" line=\"1\"><\/pre>","protected":false},"excerpt":{"rendered":"<p>sudo port install libevent CFLAGS=&#8221;-I \/opt\/local\/include -L \/opt\/local\/lib&#8221; pip install gevent \u5982\u679c\u4e0a\u8ff0\u65b9&#46;&#46;&#46;<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[340,274],"tags":[270,345],"class_list":["post-1021","post","type-post","status-publish","format-standard","hentry","category-mac-os","category-python","tag-gevent","tag-libevent"],"_links":{"self":[{"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts\/1021","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/comments?post=1021"}],"version-history":[{"count":5,"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts\/1021\/revisions"}],"predecessor-version":[{"id":1023,"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts\/1021\/revisions\/1023"}],"wp:attachment":[{"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/media?parent=1021"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/categories?post=1021"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/tags?post=1021"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}