Installing rbenv3:58 with Jay McGavren
We're going to use a program called `rbenv` (short for "RuBy ENVironment") to install and manage our Ruby interpreter on this system. Let's install `rbenv` now.
Run these commands while logged in as the deployment user on your server:
$ git clone https://github.com/rbenv/rbenv.git ~/.rbenv (No need for sudo) $ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile $ ~/.rbenv/bin/rbenv init $ echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
Then log out of your server and back in to load the changes to your
$PATH environment variable.
You can confirm the installation was successful by running
You need to sign up for Treehouse in order to download course files.Sign up