在Mac上安装Scala的编译器sbt会给我一个权限错误

时间:2017-11-20 15:39:17

标签: macos scala homebrew

我尝试在Mac OS上安装Scala编译器sbt。但我得到了许可错误。有什么想法吗?

mac610881:~ $ brew install sbt
==> Downloading https://github.com/sbt/sbt/releases/download/v1.0.3/sbt-1.0.3.tg
Already downloaded: /Users/.../Library/Caches/Homebrew/sbt-1.0.3.tgz
Error: Permission denied @ rb_file_s_rename - (conf/sbtopts, /usr/local/etc/sbtopts)

1 个答案:

答案 0 :(得分:0)

根据Jorg W Mittag的评论,我使用

解决了这个问题
sudo chown -R $(whoami) /usr/local/etc