Any commands that use sudo don\'t seem to work with RBenv.
sudo
I\'m trying to install ActiveRecord and it says I don\'t have write permission, so when I try
I realise this is kind of old now, but this may help people in future:
rbenv-sudo is a plugin for rbenv that allows you to run rbenv-provided Rubies and Gems from within a sudo session.
https://github.com/dcarley/rbenv-sudo