Installing Ruby gems not working with Home Brew

后端 未结 7 527
盖世英雄少女心
盖世英雄少女心 2020-12-07 13:57

The gems I install via sudo gem install ... can\'t be executed (I get a command not found). They seem to install into /usr/local/Cellar/

相关标签:
7条回答
  • 2020-12-07 14:37

    I think this evolve a bit.

    Just add

    export PATH=/usr/local/opt/ruby/bin:$PATH
    

    To your .bashrc (or .bash_profile, .zshrc/.bashrc, .. – whatever you use).

    If you have a problem with ruby itself

    brew unlink ruby
    brew link ruby
    
    0 讨论(0)
提交回复
热议问题