我是OSX新手,我试图安装bash,但当我运行终端时,我得到了这个错误消息:-bash: /usr/local/Cellar/grc/1.5/etc/grc.bashrc: No such file or directory
那我该怎么解决呢?

最佳答案

读取brew info grc的输出

grc: stable 1.5
http://korpus.juls.savba.sk/~garabik/software/grc.html
Conflicts with: cc65
Not installed
From: https://github.com/Homebrew/homebrew/commits/master/Library/Formula/grc.rb
==> Caveats
New shell sessions will start using GRC after you add this to your profile:
  source "`brew --prefix`/etc/grc.bashrc"

建议您在.bash_profile文件中查找并删除与上面输出中最后一行类似的行。

08-16 14:08