0% found this document useful (0 votes)
29 views1 page

Switch From RVM To RBENV

This document provides instructions for switching from RVM to RBENV on a Linux system. It involves removing RVM, installing necessary dependencies using apt-get, cloning the RBENV and ruby-build repositories, and configuring RBENV in the shell profile. Finally, it shows how to install Ruby version 2.2.3 and set it as the global version.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views1 page

Switch From RVM To RBENV

This document provides instructions for switching from RVM to RBENV on a Linux system. It involves removing RVM, installing necessary dependencies using apt-get, cloning the RBENV and ruby-build repositories, and configuring RBENV in the shell profile. Finally, it shows how to install Ruby version 2.2.3 and set it as the global version.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Switch from RVM to RBENV

## Prepare ##
Remove RVM

$ rvm implode

is not work you can click here

## Install RBENV ##

1. Update

$ sudo apt-get update

2. Install the rbenv and Ruby dependencies with apt-get:

$ sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev
libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties
libffi-dev

3. Now we are ready to install rbenv. The easiest way to do that is to run these
commands, as the user that will be using Ruby:

$ cd
$ git clone git://github.com/sstephenson/rbenv.git .rbenv
$ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
$ echo 'eval "$(rbenv init -)"' >> ~/.bashrc
$ exec $SHELL

$ git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build


$ echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc
$ exec $SHELL

$ git clone https://github.com/sstephenson/rbenv-gem-rehash.git ~/.rbenv/plugins/rbenv-gem-


rehash

$ rbenv install 2.2.3


$ rbenv global 2.2.3
$ ruby -v

You might also like