When I execute on osx El Capitan:
sudo gem update --system
I got the error:
Updating rubygems-update ERROR: While execut
ended up installing ruby via homebrew. Install homebrew first:
http://brew.sh
then execute
brew install ruby
after that it worked flawlessly. It has something to do with the native ruby installation.