How do I install RubyGems on my Mac?
I tried to run $ gem install rubygems-update with no luck . It returns
$ gem install rubygems-update
ERROR: While executing gem ...
It is showing that you don't have the permission to write something in that directory. Instead use this directory :
sudo gem install -n /usr/local/bin cocoapods
It perfectly work for me.
(I am using macOS Sierra, version 10.12.6)