Disclaimer
- This is not a foolproof recipe, it’s just a guide of the kinds of things you have to do.
- These instructions are for people who want to run Rails and are currently on a Windows computer.
- Prerequisites: You must have around 20Gig free, preferably on a solid state disk (SSD)
Install VMWare
- Install the appropriate version of VMWare. Brandeis Software Store
- Download Ubuntu Desktop 16.04 LTS. Then use it to install a new VMWare virtual machine
- Run the Ubuntu Virtual Machine via VMWare
Install Rails with rbenv
You are installing into your Linux running on VMWare. So your environment for these commands will be the linux shell displayed inside the VMWare window.
Before you follow the instructions, notice the following:
- Rbenv is a ruby utility which makes it easy to install ruby and update it in the future
- Modify:
rbenv install 2.3.1
-> rbenv install 2.4.1
- Modify:
rbenv global 2.3.1
-> rbenv global 2.4.1
- When you enter
gem env home
you should see something very similar to what is shown in the instructions. If not there’s a problem and you should talk to your TA.
- Now follow these instructions: How to install Rails, Ruby with Rbenv on Ubuntu
When everything is installed correctly, you should be able to check the versions with the following commands:
which ruby
which gem
which rails
ruby -v # should say something around 2.4
gem -v # should say something around 2.6
rails -v # should say something around 5.1