How to install Ruby on Rails with mysql and get it working, a step by step guide?

后端 未结 4 1315
青春惊慌失措
青春惊慌失措 2020-12-09 00:46

Some time ago I managed to get RoR working on Windows XP. I\'ve been trying to get it working on Windows 7 for 2 days but there\'s just no way, there\'s always a problem, on

4条回答
  •  自闭症患者
    2020-12-09 01:11

    This is basically what I do to install on Windows 7:

    • Download and install latest mysql from http://dev.mysql.com/downloads/mysql/
    • Install Ruby http://rubyinstaller.org/downloads/ (check the box to update PATH)
    • Install Ruby Devkit http://rubyinstaller.org/downloads/ (for example extract to C:\DevKit)
    • Setup Devkit

      cd [MY_DEVKIT_INSTALL_DIR]

      ruby dk.rb init

      ruby dk.rb install

    • Copy libmysql.dll from your mysql/bin install to C:\Ruby192\bin

      gem install rails

      gem install mysql2 -v 0.2.6

      rails new my_test_app -d mysql

提交回复
热议问题