<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[静怡家园]]></title> 
<link>http://www.zhanghaijun.com/index.php</link> 
<description><![CDATA[书山有路勤为径，学海无涯苦作舟！]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[静怡家园]]></copyright>
<item>
<link>http://www.zhanghaijun.com/post//</link>
<title><![CDATA[nginx编译报.openssl/include/openssl/ssl.h] Error 127]]></title> 
<author>碟舞飞扬 &lt;webmaster@zhanghaijun.com&gt;</author>
<category><![CDATA[服务器类]]></category>
<pubDate>Mon, 19 Dec 2016 09:25:33 +0000</pubDate> 
<guid>http://www.zhanghaijun.com/post//</guid> 
<description>
<![CDATA[ 
	软件版本：OpenSSL 1.0.2h&nbsp;&nbsp;nginx/1.10.2<br/>错误信息：<br/><div class="code"><br/>make -f objs/Makefile<br/>make&#91;1&#93;: Entering directory `/data/2016/openresty-1.11.2.2/bundle/nginx-1.10.2&#039;<br/>cd /usr/local/openssl &#92;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;&amp; if &#91; -f Makefile &#93;; then make clean; fi &#92;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;&amp; ./config --prefix=/usr/local/openssl/.openssl no-shared&nbsp;&nbsp;&#92;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;&amp; make &#92;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;&amp; make install_sw LIBDIR=lib<br/>/bin/sh: line 2: ./config: No such file or directory<br/>make&#91;1&#93;: *** &#91;/usr/local/openssl/.openssl/include/openssl/ssl.h&#93; Error 127<br/>make&#91;1&#93;: Leaving directory `/data/2016/openresty-1.11.2.2/bundle/nginx-1.10.2&#039;<br/>make: *** &#91;build&#93; Error 2<br/></div><br/>其实/usr/local/openssl/目录下面根本没有.openssl这个目录，找不到相关文件肯定会报错的了。<br/>解决方法也很简单：<br/><div class="code"><br/>vi auto/lib/openssl/conf<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp; 31&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CORE_INCS=&quot;$CORE_INCS $OPENSSL/.openssl/include&quot;<br/>&nbsp;&nbsp;&nbsp;&nbsp; 32&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CORE_DEPS=&quot;$CORE_DEPS $OPENSSL/.openssl/include/openssl/ssl.h&quot;<br/>&nbsp;&nbsp;&nbsp;&nbsp; 33&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CORE_LIBS=&quot;$CORE_LIBS $OPENSSL/.openssl/lib/libssl.a&quot;<br/>&nbsp;&nbsp;&nbsp;&nbsp; 34&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CORE_LIBS=&quot;$CORE_LIBS $OPENSSL/.openssl/lib/libcrypto.a&quot;<br/></div><br/>把31行到34行中的.openssl删除<br/><div class="code"><br/>&nbsp;&nbsp;&nbsp;&nbsp; 31&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CORE_INCS=&quot;$CORE_INCS $OPENSSL/include&quot;<br/>&nbsp;&nbsp;&nbsp;&nbsp; 32&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CORE_DEPS=&quot;$CORE_DEPS $OPENSSL/include/openssl/ssl.h&quot;<br/>&nbsp;&nbsp;&nbsp;&nbsp; 33&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CORE_LIBS=&quot;$CORE_LIBS $OPENSSL/lib/libssl.a&quot;<br/>&nbsp;&nbsp;&nbsp;&nbsp; 34&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CORE_LIBS=&quot;$CORE_LIBS $OPENSSL/lib/libcrypto.a&quot;<br/></div><br/>保存之后，再make就编译通过了。<br/>Tags - <a href="http://www.zhanghaijun.com/tags/error/" rel="tag">error</a> , <a href="http://www.zhanghaijun.com/tags/127/" rel="tag">127</a> , <a href="http://www.zhanghaijun.com/tags/nginx/" rel="tag">nginx</a> , <a href="http://www.zhanghaijun.com/tags/openssl/" rel="tag">openssl</a>
]]>
</description>
</item><item>
<link>http://www.zhanghaijun.com/post//#blogcomment</link>
<title><![CDATA[[评论] nginx编译报.openssl/include/openssl/ssl.h] Error 127]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.zhanghaijun.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>