Problems installing gem on OS X El Capitan 10.11.3

I was getting this error ERROR: While executing gem … (Errno::EPERM) trying to install a gem on OS X El Capitan (10.11.3) even with sudo before. I found a solution changing my GEM paths. I’m using zsh so I had to add two lines to my .zshrc

export GEM_HOME=~/.gems
export PATH=$PATH:~/.gems/bin

Reference

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.