Operation not permitted - /usr/bin/update_rubygems

后端 未结 8 1000
星月不相逢
星月不相逢 2020-12-07 17:33

When I execute on osx El Capitan:

sudo gem update --system  

I got the error:

Updating rubygems-update
ERROR:  While execut         


        
相关标签:
8条回答
  • 2020-12-07 18:16

    If you have multiple rubygems installs (say from homebrew, rbenv, rvm), to target the update to the default Apple-installed rubygems you may need to use the absolute path /usr/bin/gem to ensure this specific rubygems is updated:

    # Note the absolute path to /usr/bin/gem:
    sudo /usr/bin/gem update -n /usr/local/bin --system
    
    0 讨论(0)
  • 2020-12-07 18:20

    If you're having issues installing a specific gem after installing ruby through Homebrew (as advised above), try the following:

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

    Found this thanks to user endoplasmic on this issue thread: https://github.com/sass/sass/issues/1768

    0 讨论(0)
提交回复
热议问题