In this tutorial i will show you how to install ruby on rails on windows .just follow step by step steps you will be able to install and run ruby on rails on windows .
Steps :
1 : first download ruby installer for windows from : http://rubyinstaller.org/
and download DevKit from http://rubyinstaller.org/add-ons/devkit/
and extract and run the post install script from post-install directory
i will be using Ruby1.9.3-p194
2 : verify installation open CMD and type
- ruby -v
- gem -v
- gem update --system
- gem install rails
- or without documentation
- gem install rails --no-ri --no-rdoc
5: install SQLite 3 because ROR use default SQLite Database
- gem install sqlite3
6: install mysql gem
- gem install mysql
- if you having problem with installing mysql gem ..
- try gem install mysql –platform=ruby — –with-mysql-dir=C:\mysql or change the directories path according you MySQL installation
- if you are getting download and copy libmysql.dll into ruby bin then simply
- download c connector from here http://dev.mysql.com/downloads/mirror.php?id=377977
- and extract /lib/libmysql.dll into your c:\ruby\bin folder
- if still you are unable to install then use Google
7 : install git . for version control and code tracking download windows version from here
8 : create new rails app
- rails new demo_app
- if you are getting Gem::InstallError: The 'json' native gem requires installed build tools.
- dont panic just add devkit in your environment PATH
- add c:\devkit in your environment PATH and open CMD and type gem install json -v '1.7.3'
- if it fail to install install it from using C:\devkit\mysys.bat
- type rails -s
- open browser and navigate to http://localhost:3000
Enjoy Riding!



No comments:
Post a Comment
leave your comments
Thanks !