`

在windows下安装ruby1.9.2,rails3.0.3和DevKit--转

阅读更多

在windows下安装ruby1.9.2,rails3.0.3和DevKit

by root on 2011/03/14

1.安装ruby环境

http://rubyforge.org/frs/download.php/73722/rubyinstaller-1.9.2-p136.exe

2.安装rails
gem install rails –no-ri –no-rdoc

3.安装SQLite3

http://www.sqlite.org/sqlite-dll-win32-x86-3070400.zip

http://www.sqlite.org/sqlite-shell-win32-x86-3070400.zip

解压copy到:d:\Ruby192\bin目录.
sqlite3 -version

5.install the DevKit:

http://github.com/oneclick/rubyinstaller/wiki/Development-Kit

1>.Remove artifacts extracted by any of the legacy DevKit’s.
2>.Download the self-extracting DevKit-tdm-32-4.5.1-20101214-1400-sfx.exe archive.
3>.Extract the DevKit contents into a directory with no spaces, e.g. – d:\DevKit.
4>.Run the DevKit’s dk.rb init and install helper scripts to generate config.yml and enhance your installed Rubies.
ruby dk.rb init
ruby dk.rb install
5>.update your PATH
D:\DevKit\bin

 

D:\>gem install sqlite3-rubyFetching: sqlite3-1.3.3-x86-mingw32.gem (100%)
=============================================================================
You’ve installed the binary version of sqlite3.  It was built using SQLite3 version 3.7.3.  It’s recommended to use the exact same version to avoid potential issues.
At the time of building this gem, the necessary DLL files where available  in the following download:

http://www.sqlite.org/sqlitedll-3_7_3.zip

You can put the sqlite3.dll available in this package in your Ruby bin  directory, for example C:\Ruby\bin
=============================================================================
Fetching: sqlite3-ruby-1.3.3.gem (100%)
#######################################################
Hello! The sqlite3-ruby gem has changed it’s name to just sqlite3.  Rather thainstalling `sqlite3-ruby`, you should install `sqlite3`.  Please update yourdependencies accordingly.
Thanks from the Ruby sqlite3 team!
<3 <3 <3 <3
#######################################################
Successfully installed sqlite3-1.3.3-x86-mingw32Successfully installed sqlite3-ruby-1.3.32 gems installedInstalling ri documentation for sqlite3-1.3.3-x86-mingw32…Installing ri documentation for sqlite3-ruby-1.3.3…Installing RDoc documentation for sqlite3-1.3.3-x86-mingw32…Installing RDoc documentation for sqlite3-ruby-1.3.3…
D:\>

分享到:
评论
1 楼 fsword 2011-10-10  
同事拿着试了一下,说是把第五步放到第二步之前就可以了

相关推荐

Global site tag (gtag.js) - Google Analytics