﻿{"id":1378,"date":"2015-11-10T10:29:37","date_gmt":"2015-11-10T02:29:37","guid":{"rendered":"http:\/\/nick.txtcc.com\/?p=1378"},"modified":"2015-11-10T13:14:13","modified_gmt":"2015-11-10T05:14:13","slug":"mac-%e7%bc%96%e8%af%91openresty%e5%b8%b8%e8%a7%81%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"https:\/\/nick.txtcc.com\/index.php\/mac-os\/1378","title":{"rendered":"mac \u7f16\u8bd1openresty\u5e38\u89c1\u95ee\u9898"},"content":{"rendered":"<p>\u7b2c\u4e00\u6b21\u88c5openresty\u6ca1\u6709\u4e8b\u60c5\u7684\uff0c\u7136\u800c\u91cd\u88c5MAC\u540e\uff0c\u518d\u88c5openresty\u51fa\u73b0\u4e86\u95ee\u9898\u3002\u5b89\u88c5openresty\u53ef\u4ee5\u76f4\u63a5<\/p>\n<blockquote>git clone <a href=\"https:\/\/github.com\/openresty\" target=\"_blank\" rel=\"external\">https:\/\/github.com\/openresty<\/a><\/blockquote>\n<p>\u4e0b\u6765\uff0c\u8fd0\u884cmake\uff0c\u81ea\u52a8\u4e0b\u8f7d\u4f9d\u8d56\u5305\uff0c\u4e5f\u53ef\u4ee5\u76f4\u63a5\u5230 <a href=\"http:\/\/openresty.org\/\" target=\"_blank\" rel=\"external\"><a href=\"http:\/\/openresty.org\/\">http:\/\/openresty.org\/<\/a><\/a> \u4e0b\u8f7d\u6253\u5305\u597d\u7684\u3002<\/p>\n<h2 id=\"1-openssl\u7f3a\u5c11\u9519\u8bef\u5982\u4e0b\">1.openssl\u7f3a\u5c11\u9519\u8bef\u5982\u4e0b<\/h2>\n<figure class=\"highlight livecodeserver\">\n<table>\n<tbody>\n<tr>\n<td class=\"gutter\">\n<pre><span class=\"line\">1<\/span>\n<span class=\"line\">2<\/span>\n<span class=\"line\">3<\/span>\n<span class=\"line\">4<\/span>\n<span class=\"line\">5<\/span>\n<span class=\"line\">6<\/span><\/pre>\n<\/td>\n<td class=\"code\">\n<pre><span class=\"line\">.\/configure: error: SSL modules <span class=\"built_in\">require<\/span> <span class=\"operator\">the<\/span> OpenSSL library.<\/span>\n<span class=\"line\">You can either <span class=\"built_in\">do<\/span> <span class=\"operator\">not<\/span> enable <span class=\"operator\">the<\/span> modules, <span class=\"operator\">or<\/span> install <span class=\"operator\">the<\/span> OpenSSL library<\/span>\n<span class=\"line\"><span class=\"keyword\">into<\/span> <span class=\"operator\">the<\/span> <span class=\"keyword\">system<\/span>, <span class=\"operator\">or<\/span> build <span class=\"operator\">the<\/span> OpenSSL library statically <span class=\"built_in\">from<\/span> <span class=\"operator\">the<\/span> source<\/span>\n<span class=\"line\"><span class=\"operator\">with<\/span> nginx <span class=\"keyword\">by<\/span> <span class=\"keyword\">using<\/span> <span class=\"comment\">--with-openssl=<path> option.<\/span><\/span>\n\n<span class=\"line\">ERROR: failed <span class=\"built_in\">to<\/span> run <span class=\"command\"><span class=\"keyword\">command<\/span>: <span class=\"title\">sh<\/span> .\/<span class=\"title\">configure<\/span> --<span class=\"title\">prefix<\/span>=\/<span class=\"title\">usr<\/span>\/<span class=\"title\">local<\/span>\/<span class=\"title\">openresty<\/span>\/<span class=\"title\">nginx<\/span> \\\u2026<\/span><\/span><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>","protected":false},"excerpt":{"rendered":"<p>\u7b2c\u4e00\u6b21\u88c5openresty\u6ca1\u6709\u4e8b\u60c5\u7684\uff0c\u7136\u800c\u91cd\u88c5MAC\u540e\uff0c\u518d\u88c5openresty\u51fa\u73b0\u4e86\u95ee\u9898\u3002\u5b89\u88c5openresty\u53ef\u4ee5\u76f4\u63a5 git clone <a href=\"https:\/\/github.com\/openresty\">https:\/\/github.com\/openresty<\/a> &#46;&#46;&#46;<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[340],"tags":[342,439],"class_list":["post-1378","post","type-post","status-publish","format-standard","hentry","category-mac-os","tag-mac","tag-openresty"],"_links":{"self":[{"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts\/1378","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/comments?post=1378"}],"version-history":[{"count":3,"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts\/1378\/revisions"}],"predecessor-version":[{"id":1381,"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts\/1378\/revisions\/1381"}],"wp:attachment":[{"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/media?parent=1378"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/categories?post=1378"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/tags?post=1378"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}