First install 32bit cygwin.Install packet: openssl zlib-dev pcre gcc-core perl readlineopenresty没有对Cygwin做兼容,我们需要自己来修改文件Open bundle\lua-cjson and lua-rds-parser and lua-redis-parser three folder's Makefile for edit, Add those lines before “## ..... (Macports)”bundle\lua-cjson的,lua-rds-parser的,lua-redis-parser的Makefile里,“## ***OSX (Macports)”上面加入:[plain] view plaincopyprint?在CODE上查看代码片派生到我的代码片ifeq ($(OS),Windows_NT) LDFLAGS2 += -L../luajit-root/usr/local/openresty/luajit -lcyglua51 endififeq ($(

Code 2015-05-21

折腾了一天,终于解决了首先,准备cygwin环境 cygwin下载setup.exe,启动并开始安装,建议选163源或者日本的源,速度较快需要的安装的包及其devel包: openssl zlib pcre还有就是一些编译需要的工具: gcc4 make perl lua (不使用openresty内置的lua)下载openresty, openresty官网并解压到 C:\cygwin\tmp下修正lua的C模块编译脚本 共需要修正3个文件(其实就是3个模块),而且都是一样的修改. 版本号日新月异,自己搞定啦打开 C:\cygwin\tmp\ngx_openresty-1.2.8.6\bundle\lua-cjson-1.0.3\Makefile, 加入 -llua5.1然后就是如法炮制,修正rds和redis处理模块开始编译吧,童鞋们! 启动cgywin开始执行配置,注意,这里使用系统的lua,而非openresty内置的lua,原因就是cjson等模块会找不到内置的lua(配一下也可以,但麻烦)cd /tmp/ngx_openresty-1.2.8.6./configure --

Code 2015-05-21