nginx编译记
/** * @author Sun Yongyue * @comment 有点久了,入门级的东东,今天翻到就放出来吧 */ nginx编译记 -- with pcre/zlib/openssl preinstall 不想让nginx和pcre、openssl、zlib等一起安装(事实上一起做静态编译的话,nginx的性能会好一点,不过这个地方只是个人环境,不用考虑)。 开始尝试编译时,使用一些资料上的with-pcre、with-zlib、with-openssl参数。后来一直不成功,修改N次后无果,google之。查看很多资料之后,锁定以下几篇。 [1] 发现objs/autoconf.err里边提示md5.h找不到,google到nginx的作者回答的一个类似问题: > > The --with-openssl= option should point to OpenSSL sources, but not > > to inlcudes and binary libraries. > OK thx for the answer. As your OpenSSL is set in non-standard place (I have just tested building on Debian with standard /usr/include/openssl/md5.h)