ruby on rails 开发环境安装 for windows

1.github 注册
github.com

2.git windows 版本下载
http://code.google.com/p/msysgit/downloads/list?can=3&q=official+Git

3.ruby 1.8.7 下载 安装
http://www.ruby-lang.org/zh_cn/downloads/

4.git pub-key 生成 

ssh-keygen -t -rsa -C "[email protected]"


5.git clone 代码下载

mkdir myproject

cd myprojcet

git clone http://www.yourproj.com.git

6.rails 安装
gem install rails -v 3.0.10

7.DevKit 下载安装 
https://github.com/oneclick/rubyinstaller/wiki/Development-Kit
cd c:/DevKit
ruby dk.rb init
ruby dk.rb install


8.cd ${project-home}
  bundle install 
  发生错误,安装mysql


9.安装mysql
subst X: "C:\Program Files\MySQL\MySQL Server 5.5"
gem install mysql2 -v=0.2.7 --platform=ruby -- --with-mysql-dir=X: --with-mysql-lib=X:\lib\opt 
subst X: /D

10.切换到项目目录
cd ${project-home}
bunlde install 

11.启动server  
rails server
缺少libmysql.dll

12.Copy 
C:\Program Files\MySQL\MySQL Server 5.5\lib\libmysql.dll
to 
C:\Windows\System32\


【Reference】
http://www.cnblogs.com/ilazysoft/archive/2011/09/08/2171209.html


你可能感兴趣的:(mysql,windows,server,Ruby,Rails,reference)