Install Ruby on Rails on Windows
1. Download Ruby 1.9.3-p448 from http://dl.bintray.com/oneclick/rubyinstaller/rubyinstaller-2.0.0-p643.exe
2. Download Development kit from http://dl.bintray.com/oneclick/rubyinstaller/DevKit-mingw64-32-4.7.2-20130224-1151-sfx.exe
4. You will be given a choice where to install Ruby to
4a) Please install it to Default location (C:\Ruby200 - it will be auto filled, do not change.
4b) Check all three boxes - Td/Tk support, Ruby executables, associate .rb and .rbw
4c) click install button
***Notes:
Install Tcl/Tk support – This installs libraries for making GUI applications with Ruby
Add Ruby executables to your PATH – This will allow you to run “ruby” and other ruby exes from any directory in the command prompt.
Associate .rb and .rbw files with this ruby installation – The only reason you may not want this is if the files are already associated with something else.
5. Upon clicking install the installer will copy all the files and then you’ll see the complete screen:
6. Hit Finish, and Ruby has been installed.
You can verify this by opening a terminal window and entering “ruby -v”, which should show you something like “ruby 2.0.0p643 (message might vary for windows system)
7. Open up the DevKit (DevKit-mingw64-32-4.7.2-20130224-1151-sfx.exe) executable and extract it to C:\devkit.
8. Open a terminal window, navigate to C:\devkit and run the following commands in order:
8a) “ruby dk.rb init”
8b) “ruby dk.rb review”
8c) “ruby dk.rb install”
Installing Rails
9) In the terminal window enter
“gem install rails”
You will see a bunch of messages saying “Fetching: …. (100%)”, “Successfully installed ….”, “Installing ri documentation for ….” and “Installing RDoc documentation for ….”. Make sure that you allow ruby to connect to the internet through your firewall if you have one (and you should). Note you may see a “file ‘lib’ not found” message. This dosen’t cause any issues and it’s ok.



Comments
Post a Comment