Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

gem update on Mac High Sierra throwing Operation not permitted @ rb_sysopen error

I am having some permissions problems with Sass on my mac with High Sierra. If I try sudo gem update --system I get the following:

Updating rubygems-update
Fetching: rubygems-update-2.7.4.gem (100%)
Successfully installed rubygems-update-2.7.4
Parsing documentation for rubygems-update-2.7.4
Installing ri documentation for rubygems-update-2.7.4
Installing darkfish documentation for rubygems-update-2.7.4
Done installing documentation for rubygems-update after 44 seconds
Parsing documentation for rubygems-update-2.7.4
Done installing documentation for rubygems-update after 0 seconds
Installing RubyGems 2.7.4
ERROR:  While executing gem ... (Errno::EPERM)
    Operation not permitted @ rb_sysopen - /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/gem
like image 850
xylar Avatar asked Jan 26 '18 11:01

xylar


People also ask

What is Ruby gem Mac?

Check the gem manager RubyGems is the package manager in Ruby. We use it to install software packages that add functionality to Ruby. Check the installed gem manager version. $ gem -v 3.2.3. You can check if a newer RubyGems version is available.


1 Answers

Interestingly gem update --system works without any problems.

like image 171
xylar Avatar answered Oct 23 '22 12:10

xylar