search

Home  >  Q&A  >  body text

macos - OS X升级10.11后gem无法使用

执行了一下,gem install ***
提示:

ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.

于是用,sudo gem install ***
提示:

ERROR: While executing gem ... (Errno::EPERM)
Operation not permitted - /usr/bin/***

之前用10.10时没有这个情况,大家有遇到过这个问题吗?

PHP中文网PHP中文网2775 days ago941

reply all(3)I'll reply

  • PHP中文网

    PHP中文网2017-04-24 16:01:16

    It should be possible to restart after executing

    . After upgrading to 10.11, many apps have encountered this pitfall. csrutil disable

    But for my problem, I used

    to get another one, and then it ran normally. brew install ruby

    reply
    0
  • PHPz

    PHPz2017-04-24 16:01:16

    This is because of SIP (System Integrity Protection).

    You need to go to Recovery Mode, open Terminal, enter csrutil disable, and then restart after execution.

    reply
    0
  • phpcn_u1582

    phpcn_u15822017-04-24 16:01:16

    rootless

    reply
    0
  • Cancelreply