gem install permission problem

Try setting GEM_HOME and GEM_PATH to ~/.gem,

For the current terminal session, just type:

export GEM_HOME=~/.gem
export GEM_PATH=~/.gem

If you want these to be set whenever you open a terminal, add the above commands to your ~/.bashrc file.

For a more comprehensive solution to setting up a custom ruby environment, see this tutorial from Site5KB, which describes using a .gemrc file.

Leave a Comment