Considering that you have the virtual box installed, you need to create a box. In this example I’ll call our box of “development”.
Vagrant download: http://downloads.vagrantup.com/tags/v1.2.2
##The first step is to create the box:
Now we have a file called “Vagrantfile”
##The second step is to start the virtual machine
this proccess could take some time, because it’ll make the download of the box with ubuntu precise 64.
After the process is done, we need to map the rails’ port. We’ll edit the “Vagrantfile” and put this line on the file:
Save the file and reload the vagrant with the command:
##On the third step we’ll access the virtual machine by ssh:
The version of ruby in this box is 1.8.7, if you want to update to 2.0.0 follow this step:
Remove ruby 1.8.7:
And then download the new version:
extract the folder:
Install the basic package to compile ruby:
Compiling and install ruby:
If you don’t want to install the gems as sudoer, then you need to change the gem home:
you can put these lines on ~/.bashrc
get out of the box and reload:
Now we have the ruby 2.0.0
The final step is to install the rails:
Let’s go to party!