tag:help.rubygems.org,2010-01-19:/discussions/problems/29133-errnoeperm-for-rubygems-setupRubyGems.org: Discussion 2018-03-06T23:47:43Ztag:help.rubygems.org,2010-01-19:Comment/442646252017-12-10T07:01:05Z2017-12-10T07:01:06Zerrno::EPERM for rubygems setup<div><p><strong>Update</strong>: I also can't install it with RVM.</p>
<p>Got this:<br>
<code>Ran-sin-MacBook-Pro:~ ran$ rvm rubygems latest system - #downloading rubygems-2.6.14 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 751k 100 751k 0 0 97k 0 0:00:07 0:00:07 --:--:-- 96075 No checksum for downloaded archive, recording checksum in user configuration. system - #extracting rubygems-2.6.14.... system - #removing old rubygems......... $LANG was empty, setting up LANG=en_US.US-ASCII, if it fails again try setting LANG to something sane and try again. system - #installing rubygems-2.6.14. Error running 'env GEM_HOME=/Users/ran/.rvm/gems/system@global GEM_PATH= /Users/ran/.rvm/rubies/system/bin/ruby -d /Users/ran/.rvm/src/rubygems-2.6.14/setup.rb --no-document', please read /Users/ran/.rvm/log/1512888146_system/rubygems.install.log</code></p>
<p>And when I open the log, it says this:</p>
<p><code>[2017-12-09 21:42:26] /Users/ran/.rvm/rubies/system/bin/ruby current path: /Users/ran/.rvm/src/rubygems-2.6.14 PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/ran/.rvm/bin command(7): env GEM_HOME=/Users/ran/.rvm/gems/system@global GEM_PATH= /Users/ran/.rvm/rubies/system/bin/ruby -d /Users/ran/.rvm/src/rubygems-2.6.14/setup.rb --no-document env: /Users/ran/.rvm/rubies/system/bin/ruby: No such file or directory</code></p></div>Rántag:help.rubygems.org,2010-01-19:Comment/442646252017-12-23T06:59:28Z2017-12-23T06:59:29Zerrno::EPERM for rubygems setup<div><p>Same error for me too. Please somebody.. need help..</p></div>Indertag:help.rubygems.org,2010-01-19:Comment/442646252017-12-24T11:10:42Z2017-12-24T11:10:43Zerrno::EPERM for rubygems setup<div><p>Inder, I was able to fix this by reclaiming ownership using <code>sudo chown -R $(whoami) ~/Library</code></p>
<p>if that doesn't help, try this:</p>
<p><code>sudo chown -R $(whoami) ~/Library/Ruby</code></p></div>Rántag:help.rubygems.org,2010-01-19:Comment/442646252018-03-06T23:47:43Z2018-03-06T23:47:43Zerrno::EPERM for rubygems setup<div><p>Appears to have solved itself! In general, though, we can't offer more than rudimentary technical support for individual issues.</p></div>kerrizor