找不到符号:加载时 _ap_lua_init_mutex mod_lua
Symbol not found: _ap_lua_init_mutex when loading mod_lua
我通过 Homebrew 安装了 Apache httpd 服务器。我尝试通过 运行
编译 mod_lua
apxs -i -a -c mod_lua.c
但是 httpd 启动失败并出现错误
Cannot load /usr/local/lib/httpd/modules/mod_lua.so into server:
dlopen(/usr/local/lib/httpd/modules/mod_lua.so, 10): Symbol not found:
_ap_lua_init_mutex\n Referenced from: /usr/local/lib/httpd/modules/mod_lua.so\n Expected in: flat
namespace\n in /usr/local/lib/httpd/modules/mod_lua.so
上面的错误是什么意思?
我通过使用
构建模块来修复它
apxs -I/usr/local/include/lua5.3 -i -a -c mod_lua.c lua_*.c -lm -llua
我通过 Homebrew 安装了 Apache httpd 服务器。我尝试通过 运行
编译mod_lua
apxs -i -a -c mod_lua.c
但是 httpd 启动失败并出现错误
Cannot load /usr/local/lib/httpd/modules/mod_lua.so into server: dlopen(/usr/local/lib/httpd/modules/mod_lua.so, 10): Symbol not found: _ap_lua_init_mutex\n Referenced from: /usr/local/lib/httpd/modules/mod_lua.so\n Expected in: flat namespace\n in /usr/local/lib/httpd/modules/mod_lua.so
上面的错误是什么意思?
我通过使用
构建模块来修复它apxs -I/usr/local/include/lua5.3 -i -a -c mod_lua.c lua_*.c -lm -llua