Hello!
2015-05-07 15:35 GMT+08:00 <alan...@163.com>:
> 启动后报错:
>
> nginx: [error] init_by_lua error: error loading module 'posix' from file
> '/usr/local/lib/lua/5.1/posix.so':
> /usr/local/lib/lua/5.1/posix.so: undefined symbol: luaopen_posix
> stack traceback:
> [C]: at 0x7fe5741f7e60
> [C]: in function 'require'
> init_by_lua:2: in main chunk
>
看起来像是你的 lua-posix 库在编译的时候错误地使用了 Lua 5.0 或者 Lua 5.2 的 ABI. 这里我们需要的是 Lua
5.1 的 ABI. 建议重新使用 Lua 5.1 的 ABI 编译 lua-posix 库。
Regards,
-agentzh