It seems not maintainable when we have too many gems installed on your local machine gem repositories, indeed in UNIX machine, our access is granted by user group itself. How if one day, my harddisk crashes and I loss all my data, BTW, I only backup my home folder in this case. So due to this incident, I need to reinstall all my ruby gems again to get Ruby on Rails development environment ready to use. Too much work.
Try this to solve the issue, by installing all your gem inside you home folder.
$ cd ~ $ mkdir .gem $ export GEM_PATH=~/.gem $ gem install -i ~/.gem haml
You can also put this export GEM_PATH=~/.gem to your ~/.profile or ~/.bash_profile.
Whats the .gem directory look like:
$ ls ~/.gem ./ ../ bin/ cache/ doc/ gems/ source_cache specifications/