Getting a “bad interpreter” error when using brew

前端 未结 12 1501
半阙折子戏
半阙折子戏 2020-12-01 14:13

I\'m getting this error when I try to run any brew command.

Holger-Sindbaeks-MacBook-Air:~ holgersindbaek$ brew help
-bash: /usr/local/bin/brew: /usr/bin/rub         


        
12条回答
  •  抹茶落季
    2020-12-01 14:18

    I solved it with commands as mentioned.

    1.) Uninstall your GEM.

    gem unistall GEM

    2.) Then Install your GEM.

    sudo gem install GEM -n /usr/local/bin

提交回复
热议问题