ZeroBrain Studio (ZBS): error loading module 'rds.parser' from file '/opt/zbstudio/bin/linux/x64/clibs53/rds/parser.so':
/opt/zbstudio/bin/linux/x64/clibs53/rds/parser.so: undefined symbol: luaL_register
stack traceback:
[C]: in ?
[C]: in function 'require'
lua/system/pgsql.lua:11: in main chunk
我需要将我从某个外部资源https://github.com/openresty/lua-rds-parser获得的外部 C++ 模块添加到我的 ZeroBrane Studio 项目中
我在 ubuntu 19.04 上使用 lua 5.3 和 ZeroBrane Studio。
我编译了lua-rds-parser上面提到的库并收到了 parser.so ,只需通过
sudo make- 命令启动到解压缩的目录。我从那里复制parser.so到目录,当启动我写的 my - 文件时, Studio 尝试找到它:/opt/zbstudio/bin/linux/x64/clibs53/rds/parser.soZeroBranehello.lua
local parser = require("rds.parser")
按照http://webserver2.tecgraf.pucrio.br/~lhf/ftp/lua/install.html中的描述完成。
但是错误信息如下: undefined symbol: luaL_register