Mac更新Ruby报错

Mac update ruby error

Posted by     "" on Wednesday, December 6, 2017

Mac更新Ruby报错

sudo gem update --system  
ERROR:  While executing gem ... (Errno::EPERM)
    Operation not permitted - /usr/bin/update_rubygems

解决方法:

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