Menu

Tuesday, December 14, 2010

How to install RoR on Windows

1. download "rubyinstaller-1.9.2-p0" from the ROR website and set it path by click on the check box

2. install rails by  command "gem install rails"

note: you can check version by put -v after command

3. update gem by "gem update --system"

4. copy libmysql.dll from C:\Program Files\MySQL\MySQL Server 5.1\bin OR C:\Program Files\MySQL\MySQL Workbench 5.2 CE into E:\Ruby192\bin OR C:\Program Files\MySQL\MySQL Server 5.5\lib

5. install mysql by "gem install mysql"

6.download "rubygem"

7. If you encounter the above error when you enter "rake db:create" command , delete "rake.gemspec" in C:/Ruby192/lib/ruby/1.9.1/gems/specifications

No comments:

Post a Comment