Moving from rvm to rbenv03 Aug 2015
But turns out that rvm installation is broken. It happens from time to time. I used to use a workaround, and I can’t find it right now. This is the error I’ve got:
I followed the steps in the documentation, and this is the commands that I run. Remember I’m using Ubuntu 14.04, so I need to change
git clone git://github.com/sstephenson/rbenv.git ~/.rbenv echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.profile echo 'eval "$(rbenv init -)"' >> ~/.profile git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build source ~/.profile
Then I can install any version of ruby. In my case, I need ruby 2.1.2
rbenv install 2.1.2 rbenv rehash rbenv global 2.1.2
Bad interpreter error
I found my first error! Yay!
ubuntu@ip-172-30-0-171:~/blog$ bundle install -bash: /usr/local/bin/bundle: /usr/bin/ruby2.0: bad interpreter: No such file or directory
Turns out that, even though I uninstalled the ruby package, the bundler gem was still installed. So I had to do some cleanup
sudo apt-get install ruby2.0 sudo gem2.0 uninstall bundler sudo apt-get purge ruby2.0
Now, I can use Ruby 2.1.2 in Ubuntu 14.04. Happiness and joy!