ZBS ZeroBraneStudio lua 库位置 Mac OS

ZBS ZeroBraneStudio lua libs location in Mac OS

我想在我的本地主机上调试 openresty lua,它是 运行。为此,我在 MAC 中安装了 ZBS IDE。我正在浏览可用的文档 at

说明说我需要在 nginx conf 中设置以下内容

lua_package_path '{ZBS}/lualibs/?/?.lua;{ZBS}/lualibs/?.lua;;';
lua_package_cpath '{ZBS}/bin/clibs/?.dll;;';

我发现很难找到 mac 中的位置。我在应用程序目录中安装了 IDE 我移动的 dmg。由于我无法设置此路径,因此我的 ngix 无法找到模块 'mobdebug'.

知道如何在 Mac OS 中找到 ZBS lua 库路径吗?

如果您安装了 ZBS 作为应用程序,则路径中的 {ZBS} 需要替换为类似 /Applications/ZeroBraneStudio.app/Contents/ZeroBraneStudio 的内容,因此完整路径变为:

lua_package_path '/Applications/ZeroBraneStudio.app/Contents/ZeroBraneStudio/lualibs/?/?.lua;/Applications/ZeroBraneStudio.app/Contents/ZeroBraneStudio/lualibs/?.lua;;';
lua_package_cpath '/Applications/ZeroBraneStudio.app/Contents/ZeroBraneStudio/bin/clibs/?.dylib;;';