msys 编译 openresty 记录(失败)
来源:互联网 发布:玩别人老婆知乎 编辑:程序博客网 时间:2024/06/06 09:16
自己编译过程的记录,没有成功。
不建议用msys编译,坑太多。
1. 下载pcre,解压
./configure --prefix=/mingw --enable-pcre16 --enable-pcre32 --enable-unicode-properties --enable-newline-is-any
修改Makefile
这2个设置为空
VISIBILITY_CFLAGS =
VISIBILITY_CXXFLAGS =
make
make install
cd /mingw/includecp pcreposix.h regex.h
cd /mingw/libcp libpcreposix.a libregex.acp libpcreposix.dll.a libregex.dll.a
cp libpcreposix.a libgnurx.acp libpcreposix.dll.a libgnurx.dll.a
2. 下载openresty,解压
修改luajit为static
修改cjson redis rds 3个项目的makefile,给cc编译加上-lluajit-5.1
或者不改为static,但cc编译加上
../luajit-root/usr/local/openresty/luajit/lib/luajit-5.1.dll
修改rds所有文件的u_char到char
修改luajit/lib_package.c lj_clib.c, 4个GET_MODULE_HANDLE的define注释掉
//#ifndef GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS
//#define GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS 4
//#define GET_MODULE_HANDLE_EX_FLAG_UNCHANGED_REFCOUNT2
BOOL WINAPI GetModuleHandleExA(DWORD, LPCSTR, HMODULE*);
//#endif
./configure --with-luajit --with-pcre=/mingw --with-zlib=/usr --with-openssl=/usr --with-cc-opt="-D FD_SETSIZE=4096 -D __NO_MINGW_LFS -D __WATCOMC__"
修改nginx下的\build\nginx-1.4.3\objs\Makefile
搜索ssl,/usr/.openssl/include改成/usr/include/openssl,/usr/.openssl/lib改成/usr/lib/openssl
注释掉/usr/.openssl/include/openssl/ssl.h: objs/Makefile和下面一起的几行
搜索pcre,/usr/include/pcre.h改成/mingw/include/pcre.h,lib也要
搜索zlib,改成/mingw/lib
复制libluajit-5.1.a到系统lib目录
make
失败。。。
- msys 编译 openresty 记录(失败)
- MSYS记录
- Openresty 编译
- 在msys环境下编译GDB的过程记录
- (MSys+MinGW )FFmpeg工程编译 FFplay
- ffmpeg 编译 命令(windows+MSYS+MinGW)
- Msys+MinGW编译VLC
- mingw+msys+GTK编译
- ffmpeg编译 MingW + MSYS
- Msys 编译 VS2013 ffmpeg
- MingW64+msys编译x264
- 记录glibc编译失败经历
- openresty 编译出错
- openresty 静态编译
- 安装openresty失败的解决
- 使用msys;mingw编译openldap
- MinGW(msys 1.0) 编译 splint
- Msys+MinGW编译VLC1.1.11
- 还在加班呢
- linux shell 备份mysql 数据库
- Django模板中的关闭和开启HTML自动转义,解析
- Sereja and Algorithm -----Codeforces Round #215 div.1 A
- Recursion 求所有子集 @CareerCup
- msys 编译 openresty 记录(失败)
- linux学习笔记--鸟哥的linux私房菜第0章 计算机概论
- CF#215DIV2:A. Sereja and Coat Rack
- protel的一些记录
- CF#215DIV2:B. Sereja and Suffixes
- CF#215DIV2:C. Sereja and Algorithm
- codeforces Round #215 div2 题解
- CodeForce Round 215 DIV2 C 使用了线段树 但是多此一举...
- Codeforces Round #215 (Div. 1)