我尝试在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)
答案 0 :(得分:0)
根据Jorg W Mittag的评论,我使用
解决了这个问题sudo chown -R $(whoami) /usr/local/etc