2

我在我的 OSX 10.10 机器上使用brew install lua. 安装的版本是 5.2.4。LuaRocks 与 lua 包一起安装。但是当我跑步时,luarocks install <package_name>我得到了Error: @@HOMEBREW_PREFIX@@ does not exist and your user does not have write permissions in。我也尝试过使用sudo luarocks install <package_name>,但它给出了同样的错误。如何解决这个问题?

请帮忙。谢谢

4

2 回答 2

3

这是我们重新定位文本文件的方式中的一个错误,以确保非/usr/local 用户更广泛的瓶子可移植性。

它在几周前得到了解决,我相信是 7 月 31 日。假设您的 Homebrew 位于标准位置,如果您这样做:

rm /usr/local/etc/luarocks52/config-5.2.lua && brew update && brew reinstall lua

现在应该解决这个问题。道歉!

于 2015-08-13T22:44:14.673 回答
1

在使用自制软件安装 luarocks 时,我遇到了同样的问题,尝试像这样再次安装 luarocks:

$ wget http://luarocks.org/releases/luarocks-2.2.1.tar.gz
$ tar zxpf luarocks-2.2.1.tar.gz
$ cd luarocks-2.2.1
$ ./configure; sudo make bootstrap

我从这里获取了这个代码片段:https ://luarocks.org/ 完成此操作后,我成功地安装了我需要的所有模块。

于 2015-07-28T15:41:07.290 回答