{"id":1890,"date":"2012-07-07T13:51:00","date_gmt":"2012-07-07T05:51:00","guid":{"rendered":""},"modified":"2013-11-17T11:07:58","modified_gmt":"2013-11-17T03:07:58","slug":"facebook%e9%a1%b9%e7%9b%aehiphop%e5%ae%89%e8%a3%85%e5%8f%8a%e4%bd%bf%e7%94%a8","status":"publish","type":"post","link":"https:\/\/kyle.ai\/blog\/1890.html","title":{"rendered":"Facebook\u9879\u76eehiphop\u5b89\u88c5\u53ca\u4f7f\u7528"},"content":{"rendered":"<h1 style=\"display: none;\">Facebook\u9879\u76eehiphop\u5b89\u88c5\u53ca\u4f7f\u7528<\/h1>\n<div>\n<p>\u6309\u7167\u5b98\u65b9\u7684wiki\u5b89\u88c5\u65b9\u6cd5\uff0c\u5728Ubuntu 12.04\u4e0b\u9762\u5b89\u88c5\u3002<\/p>\n<p>https:\/\/github.com\/facebook\/hiphop-php\/wiki\/Building-and-Installing-on-Ubuntu-11.04<\/p>\n<p>\u6211\u5728\u5b89\u88c5\u7684\u65f6\u5019\u9047\u5230\u4fe9\u4e2a\u95ee\u9898\uff1a<\/p>\n<p>1\u3001\u5b89\u88c5libcurl\u7684\u65f6\u5019\uff0c\u201cundefined reference to `SSLv2_client_method&#8217;\u201d<\/p>\n<p>\u89e3\u51b3\u529e\u6cd5\u5728 https:\/\/github.com\/bagder\/curl\/commit\/26b487a5d6ed9da5bc8e4a134a88d3125884b852<\/p>\n<p>\u5728libcurl\u4e2d\u7684lib\/ssluse.c\u6587\u4ef6\u4e2d\u6dfb\u52a0\u51e0\u884c\u3002<\/p>\n<p>2\u3001\u7f16\u8bd1\u65f6\uff0c\u9047\u5230\u7684\u95ee\u9898\u63cf\u8ff0\u89c1\uff1a<\/p>\n<p>https:\/\/github.com\/facebook\/hiphop-php\/issues\/470<\/p>\n<p>\u89e3\u51b3\u529e\u6cd5\u5c31\u662f\u4e0b\u9762\u7684\u56de\u590d\u3002<\/p>\n<p>\u5b89\u88c5\u597d\u540e\uff0c\u4f7f\u7528\u65b9\u6cd5\u89c1wiki\uff1a<\/p>\n<p>https:\/\/github.com\/facebook\/hiphop-php\/wiki\/Running-HipHop<\/p>\n<p>\u8bf4\u660e\u4e00\u4e0b\uff0c\u5728\u4f7f\u7528\u524d\u9700\u8981\u8bbe\u7f6e\u51e0\u4e2a\u73af\u5883\u53d8\u91cf\uff1a<\/p>\n<p>export CMAKE_PREFIX_PATH=\u653ehiphop\u7684\u76ee\u5f55<\/p>\n<p>export HPHP_HOME=hiphop\u76ee\u5f55<\/p>\n<p>export HPHP_LIB=hiphop\u76ee\u5f55\u4e0b\u9762\u7684bin\u76ee\u5f55<\/p>\n<p>\u4f8b\u5982\u6211\u7684\u76ee\u5f55\u5982\u56fe\uff1a<\/p>\n<p><img decoding=\"async\" src=\".\/wp-content\/uploads\/hibaidu\/4f0ba1c279310a555b01a65bb74543a982261032.jpg\" alt=\"\" \/><\/p>\n<p>\u5219\u8bbe\u7f6e\uff1a<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nexport CMAKE_PREFIX_PATH=~\/hiphop_dev\r\nexport HPHP_HOME=~\/hiphop_dev\/hiphop-php\r\nexport HPHP_LIB=~\/hiphop_dev\/hiphop-php\/bin\r\n<\/pre>\n<p>\u6211\u5c06\u6211\u4e4b\u524d\u7684\u4e00\u4e2aphp\u9879\u76ee\u7528hiphop\u751f\u6210\u4e86\u4e00\u4e0b\uff0c\u5177\u4f53\u547d\u4ee4\u5982\u4e0b\uff1a<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nexport CMAKE_PREFIX_PATH=~\/hiphop_dev\r\nexport HPHP_HOME=~\/hiphop_dev\/hiphop-php\r\nexport HPHP_LIB=~\/hiphop_dev\/hiphop-php\/bin\r\ncd ~\/www\/weborbit\/\r\nfind -name '*.php' &gt; files.list\r\n$HPHP_HOME\/src\/hphp\/hphp --input-list=files.list -k 1 --log=3 --force=1 --cluster-count=50\r\n<\/pre>\n<p>\u5b8c\u6210\u4e4b\u540e\uff0c\u8fd0\u884cserver\uff1a<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nsudo \/tmp\/hphp_rEK5v0\/program -m server -p 8080 -v &quot;Server.SourceRoot=\/home\/chenming\/www\/weborbit&quot; \\\r\n     -v &quot;Server.DefaultDocument=index.php&quot; -c $HPHP_HOME\/bin\/mime.hdf\r\n<\/pre>\n<p>\u4e4b\u540e\u8bbf\u95ee\uff1a<\/p>\n<p>http:\/\/127.0.0.1:8080\/WebOrbit.html<\/p>\n<p><img decoding=\"async\" src=\".\/wp-content\/uploads\/hibaidu\/013c4491f603738d5d49748db31bb051f919ecd9.jpg\" alt=\"\" \/><\/p>\n<p>\u6d4b\u8bd5\u4e86\u4e00\u4e0b\u6027\u80fd\uff0c\u5982\u679c\u7528apache\u8bbf\u95ee\uff0c\u5219\u9700\u898120\u51e0\u79d2\u624d\u80fd\u8ba1\u7b97\u51fa\u6765\uff0c\u6362\u6210hiphop\u540e\uff0c\u53ea\u8981\u4e0d\u52302s\u3002<\/p>\n<p>apache\u8bbf\u95ee\u539f\u7248\u672c\uff1a<\/p>\n<p><img decoding=\"async\" src=\".\/wp-content\/uploads\/hibaidu\/1cff731fd21b0ef4d996e0f1ddc451da80cb3ee5.jpg\" alt=\"\" \/><\/p>\n<p>hiphop\u5904\u7406\u540e\u7684\uff1a<\/p>\n<p><img decoding=\"async\" src=\".\/wp-content\/uploads\/hibaidu\/e45d3aa95edf8db1475904cb0923dd54574e74ec.jpg\" alt=\"\" \/><\/p>\n<p>\u8ba1\u7b97\u9ad8\u5ea6\u89d2\uff0c\u672a\u4f18\u5316\u898120\u591a\u79d2\uff1a<\/p>\n<p><img decoding=\"async\" src=\".\/wp-content\/uploads\/hibaidu\/1325992ad40735fa368336169e510fb30e2408e8.jpg\" alt=\"\" \/><\/p>\n<p>\u4f18\u5316\u540e\u4e0d\u52302s\uff1a<\/p>\n<\/div>\n<p><img decoding=\"async\" src=\".\/wp-content\/uploads\/hibaidu\/45c7a150f3deb48f0c05d971f01f3a292cf578eb.jpg\" alt=\"\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Facebook\u9879\u76eehiphop\u5b89\u88c5\u53ca\u4f7f\u7528 \u6309\u7167\u5b98\u65b9\u7684wiki\u5b89\u88c5\u65b9\u6cd5\uff0c\u5728Ubuntu 12.04\u4e0b\u9762\u5b89\u88c5\u3002  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-1890","post","type-post","status-publish","format-standard","hentry","category-diary"],"_links":{"self":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/1890","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/comments?post=1890"}],"version-history":[{"count":3,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/1890\/revisions"}],"predecessor-version":[{"id":4495,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/1890\/revisions\/4495"}],"wp:attachment":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/media?parent=1890"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/categories?post=1890"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/tags?post=1890"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}