编译windows版tengine(nginx)

tengine(nginx)通过cygwin编译出windows版本安装包


cygwin下载
https://cygwin.com/setup-x86_64.exe


tengine下载地址
http://tengine.taobao.org/download_cn.html


cygwin安装gcc
setup-x86_64.exe -q -P wget -P gcc-g++ -P make -P diffutils -P libmpfr-devel -P libgmp-devel -P libmpc-devel
cygwin安装crypt
Devel_Default>gambas3-gb-crypt:MD5/DES crypting for Gambas
...


tengine编译windows版本时编译参数
./configure --builddir=objs --prefix=../nginx --conf-path=conf/nginx.conf --pid-path=logs/nginx.pid --http-log-path=logs/access.log --error-log-path=logs/error.log --sbin-path=nginx.exe --with-cc-opt="-D FD_SETSIZE=409600" && make && make install




对了,参数里的路径要用相对路径,否则编译出来的nginx在windows上运行路径要与编译环境的路径一致
我之前用的是tengine2.2.0的源码,这个参数对版本应该没有要求, 都是一些路径
编译是在cygwin上操作的


tengine2.2.1版本源码有问题,用最新代码编译没问题


Nginx源码学习之编译、构建与安装(cygwin环境)  包含注意事项
http://blog.csdn.net/cpucooler2011/article/details/21995595
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值