错误:无法找到Lua库.您可能需要配置LUA_LIBDIR [英] Error: Failed finding Lua library. You may need to configure LUA_LIBDIR

查看:1490
本文介绍了错误:无法找到Lua库.您可能需要配置LUA_LIBDIR的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在运行ubuntu并安装了羽绒被, 但是,每当我尝试安装类似luasocket的东西(luarocks安装luasocket)时,都会抛出以下错误:

I am running ubuntu and installed luarocks, however, whenever I try to install a something like luasocket (luarocks install luasocket), it throws me the following error:

错误:无法找到Lua库.您可能需要配置LUA_LIBDIR

Error: Failed finding Lua library. You may need to configure LUA_LIBDIR

我的配置文件都如下所示:

Both my config files look like this:

    rocks_trees = {
   { name = "user", root = home .. "/.luarocks" };
   { name = "system", root = "/usr/local" };
}
lua_interpreter = "lua5.3";
variables = {
   LUA_DIR = "/usr/include/lua53";
   LUA_BINDIR = "/usr/bin/lua53";

}

感谢您的帮助!

推荐答案

感谢您的答复,但是我的工作方式是:

thanks for the responses, however i got it working by:

卸载lua 卸载羽绒服

uninstalling lua uninstalling luarocks

安装lua5.1以及开发版本 按照luarocks.org上的说明安装luarocks

installing lua5.1 as well as the development version installing luarocks as instructed on luarocks.org

对我来说,问题是我以某种方式将lua5.3作为主要的lua版本,但是以某种方式具有其他版本的源文件,因此我只需要完全删除所有内容并确保下载一致的版本. 希望这对其他人有帮助!

the problem for me was i somehow got lua5.3 as my main lua version, but somehow had other version source files, so i just had to completely delete everything and make sure i download consistent versions. Hope this helps anyone else!

这篇关于错误:无法找到Lua库.您可能需要配置LUA_LIBDIR的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆