I\'m building a vagrant setup, and part of that is installing rbenv. I\'m using librarian-chef to manage all my chef cookbooks, and it installs rbenv and ruby-build.
How
rbenv should be installed at a user level.
Unfortunately, this means that when running gem install
, you may run into the problem you saw:
You don't have write permissions into the {...} directory
You can solve this by setting the correct permissions on the ~/.rbenv
directory.
sudo chown -R yourusername ~/.rbenv
After chown
ing the directory, you'll be able to run gem install
without sudo
.