How do I fix the “You don't have write permissions into the /usr/bin directory” error when installing Rails?

后端 未结 9 1816
滥情空心
滥情空心 2020-12-07 07:56

I\'m trying to install Rails 3 on a brand new MacBook Pro running OS X 10.6.3, Ruby 1.8.7, and Rails 2.3.5 and I\'m wondering if I\'ve hosed myself. So far, I\'ve run these

9条回答
  •  庸人自扰
    2020-12-07 08:00

    On macOS High Sierra, this solved my issue:

    sudo gem update --system -n /usr/local/bin/gem
    

提交回复
热议问题