openresty升级到1.11.2之后lua-resty-string包中aes文件报错

444 views
Skip to first unread message

熊云昆

unread,
Sep 26, 2016, 6:10:04 AM9/26/16
to open...@googlegroups.com
hi,
我之前的版本是openresty-1.9.7版本,之前引用aes.lua文件都一切正常的,但是在升级到openresty-1.11.2之后发现aes.lua抛出以下错误:
/home/statics/mcs/gservice/./lib/libluajit-5.1.so.2: undefined symbol: EVP_md5
stack traceback:
        [C]: in function '__index'
        /home/statics/mcs/gservice/base/aes.lua:106: in main chunk
        [C]: in function 'require'
        /home/statics/mcs/gservice/base/init.lua:7: in main chunk

这是什么原因导致的?


 

Ming

unread,
Sep 26, 2016, 6:35:13 AM9/26/16
to open...@googlegroups.com
你是如何升级的?是什么操作系统,是不是  ./configure 的时候没有指定 OpenSSL 的配置?



 

--
--
邮件来自列表“openresty”,专用于技术讨论!
订阅: 请发空白邮件到 openresty+subscribe@googlegroups.com
发言: 请发邮件到 open...@googlegroups.com
退订: 请发邮件至 openresty+unsubscribe@googlegroups.com
归档: http://groups.google.com/group/openresty
官网: http://openresty.org/
仓库: https://github.com/agentzh/ngx_openresty
教程: http://openresty.org/download/agentzh-nginx-tutorials-zhcn.html

熊云昆

unread,
Sep 26, 2016, 7:19:49 AM9/26/16
to open...@googlegroups.com
我的操作系统是:centos 6.5
通过以下命令重新编译生成nginx升级的:
NGX_DEVEL_KIT=$(CUR_PATH)/ngx_devel_kit-0.3.0
NGX_LUA=$(CUR_PATH)/ngx_lua-0.10.6
NGX_DRIZZLE=$(CUR_PATH)/drizzle-nginx-module-0.1.9
NGX_PATH=$(CUR_PATH)/nginx-1.11.2
LUA_RDS=$(CUR_PATH)/lua-rds-parser-0.06
LUA_ICONV=$(CUR_PATH)/iconv-nginx-module-0.14
PCRE=$(CUR_PATH)/pcre-8.32
DRIZZLE=$(CUR_PATH)/drizzle-nginx-module-0.1.9
JSON=$(CUR_PATH)/rds-json-nginx-module-0.14
cd $(NGX_PATH) && chmod a+x configure && ./configure --add-module=$(NGX_DEVEL_KIT) --add-module=$(NGX_LUA) --add-module=$(NGX_DRIZZLE) && make && cp objs/nginx $(CUR_PATH)/../nginx_bin/

我之前从openresty1.7升级到1.9.7.1的时候也没有指定过OpenSSL 的配置,这个升级要指定OpenSSL 配置吗?
订阅: 请发空白邮件到 openresty+subs...@googlegroups.com
发言: 请发邮件到 open...@googlegroups.com
退订: 请发邮件至 openresty+unsub...@googlegroups.com

Ming

unread,
Sep 26, 2016, 11:30:28 AM9/26/16
to open...@googlegroups.com
你这个是把 OpenResty 里面的 ngx_lua 模块编译到标准 NGINX 中。这种方式需要指定 --with-http_ssl_module(https://nginx.org/en/docs/http/ngx_http_ssl_module.html),这个模块在标准 NGINX 中默认是关闭的。而在 OpenResty 的官方安装包中默认是打开的。

所以,推荐你使用官方的 OpenResty 安装包来安装,避免各种问题。现在 OpenResty 提供 yum 一键安装和升级:https://openresty.org/en/linux-packages.html

熊云昆

unread,
Sep 26, 2016, 9:59:42 PM9/26/16
to open...@googlegroups.com

好的,谢谢,加上--with-http_ssl_module真就可以了,另外我也会尽快把我的项目切换到标准的openresty上面来,避免这样的问题出现
订阅: 请发空白邮件到 openresty+subs...@googlegroups.com
发言: 请发邮件到 open...@googlegroups.com
退订: 请发邮件至 openresty+unsub...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages