321cc.cn
注 册 商: 厦门易名科技股份有限公司HTTP/1.1 301 永久重定向 服务器:nginx 访问时间:2015年06月20日 07:38:13 类型:text/html 文件大小:178 连接:keep-alive Keep-Alive: timeout=60 目标网址:http://321cc.cn/ HTTP/1.1 200 OK 服务器:nginx 访问时间:2015年06月20日 07:38:13 类型:text/html; charset=UTF-8 Transfer-Encoding: chunked 连接:keep-alive Keep-Alive: timeout=60 X-Pingback: http://321cc.cn/action/xmlrpc Content-Encoding: gzip 网站编码:UTF-8
W.S.T's Blog - 321Cc.Cn Attitude is everything首页关于Building openresty1.7.10.1 with luajit on windows using Cygwin, 在windows下用Cygwin下编译带Luajit的openresty 作者:W.S.T发布时间:May 21, 2015分类:CodeNo CommentsFirst 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 -lcyglua51endififeq ($(OS),Windows_NT)LDFLAGS2 += -L../luajit-root/usr/local/openresty/luajit -lcyglua51endifchange[plain] view plaincopyprint?在CODE上查看代码片派生到我的代码片$(CC) $(LDFLAGS) -o $@ $^$(CC) $(LDFLAGS) -o $@ $^(cjson may be "$(CC) $(LDFLAGS) $(CJSON_LDFLAGS) -o $@ $(OBJS)")to[plain] view plaincopyprint?在CODE上查看代码片派生到我的代码片$(CC) $(LDFLAGS) -o $@ $^ $(LDFLAGS2)$(CC) $(LDFLAGS) -o $@ $^ $(LDFLAGS2)(cjson may be "$(CC) $(LDFLAGS) $(CJSON_LDFLAGS) -o $@ $(OBJS) $(LDFLAGS2)")Then run:[plain] view plaincopyprint?在CODE上查看代码片派生到我的代码片./configure --without-select_module --with-luajitlet ./configure can found your luajit:mv ./build/luajit-root/usr/local/openresty/luajit/include/luajit-2.1 /usr/local/includecp ./build/LuaJIT-2.1-20150223/src/cyglua51.dll /lib/libluajit-5.1.a./configure --without-select_module --with-luajit (must do this again)./configure --without-select_module --with-luajitlet ./configure can found your luajit:mv ./build/luajit-root/usr/local/openresty/luajit/include/luajit-2.1 /usr/local/includecp ./build/LuaJIT-2.1-20150223/src/cyglua51.dll /lib/libluajit-5.1.a./configure --without-select_module --with-luajit (must do this again)LuaJIT-2.1-20150223 my be wrong dir name, you need press tab after LuaJIT-2.1-LuaJIT-2.1-20150223目录名不一定一样,你需要在LuaJIT-2.1-文字后直接按Tab换成正确的目录。[plain] view plaincopyprint?在CODE上查看代码片派生到我的代码片let make can link your luajit:cp ./build/LuaJIT-2.1-20150223/src/cyglua51.dll ./build/luajit-root/usr/local/openresty/luajitmake -j8make install DESTDIR=/usr2cp ./build/LuaJIT-2.1-20150223/src/cyglua51.dll /usr2/usr/local/openresty/nginx/sbin/let make can link your luajit:cp ./build/LuaJIT-2.1-20150223/src/cyglua51.dll ./build/luajit-root/usr/local/openresty/luajitmake -j8make install DESTDIR=/usr2cp ./build/LuaJIT-2.1-20150223/src/cyglua51.dll /usr2/usr/local/openresty/nginx/sbin/All will be ok. You can find openresty in /usr2/usr/local/ folder.Also the ffi may be a problem, because under cygwin, -E can not be exported function symbols, i have discussed this issue with the author Agentzh, may be next version can solve this problem (Already fixed in 1.4.3.9).另外Cygwin编译的使用jit的ffi可能有问题,因为cygwin下-E无法导出函数符号,春哥已生成补丁,预估以后版本可以解决(1.4.3.9已解决)。 在windows下编译OpenResty作者:W.S.T发布时间:May 21, 2015分类:CodeNo Comments折腾了一天,终于解决了首先,准备cygwin环境cygwin下载setup.exe,启动并开始安装,建议选163源或者日本的源,速度较
© 2010 - 2020 网站综合信息查询 同IP网站查询 相关类似网站查询 网站备案查询网站地图 最新查询 最近更新 优秀网站 热门网站 全部网站 同IP查询 备案查询
2025-06-07 20:47, Process in 0.0042 second.