【发布时间】:2015-10-18 16:53:11
【问题描述】:
我使用brew install lua 在我的 OSX 10.10 机器上安装了 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>,但它给出了同样的错误。如何解决这个问题?
请帮忙。 谢谢
【问题讨论】:
-
尝试
brew update和brew doctor并检查输出中的更多警告。 -
我遇到了同样的错误。我注意到
@@HOMEBREW_PREFIX@@已写入文件/usr/local/etc/luarocks52/config-5.2.lua作为系统岩石树的根。大概应该是/usr/local。
标签: macos lua homebrew luarocks