Linux Non VM
To build and install Ruby yourself on Linux, first make sure that you have followed the instructions on the Linux Downloads page.
If you run into errors at any step here, please ask an instructor or TA to help diagnose the issue.
Open your command line and
cd to the directory where you put
cd to the
chruby directory that you cloned with Git. Run:
cd to the
ruby-install directory that you cloned with Git. Run:
ruby-install ruby 2.0
This will download and build Ruby, which will take a while.
If everything is set up, you'll see:
ruby 2.0.0p451 (2014-02-24) [i686-linux]
Add chruby to your shell
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
Linux Mint and Ubuntu 10.10: Modify your
~/.bashrcfile instead of
~/.bash_profile. Zsh: Modify your
~/.zshenvfile instead of
Restart your shell so the path changes take effect. You can now begin using rbenv.
Close an re-open your terminal and confirm Ruby is installed properly
You should get something similar to
ruby 2.0.0p451 (2014-02-24) [i686-linux]If you do not see
ruby 2.0.0please call in an instructor to help diagnose the installation issue.
Install Rails and other supporting gems
gem install rails -v 4.0.5 gem install protected_attributes
Congratulations, you now have the Ruby development environment up and running. Now go forth and do something awesome with it!
Once you've installed these programs, continue to Setting Up Your Virtual Machine.