当前位置: 代码迷 >> SQL >> 在windows停安装DevKit和sqlite3
  详细解决方案

在windows停安装DevKit和sqlite3

热度:37   发布时间:2016-05-05 13:04:50.0
在windows下安装DevKit和sqlite3

1.Ruby version and rubygems environment:

C:\>ruby -vruby 1.9.2p136 (2010-12-25) [i386-mingw32]C:\>gem envRubyGems Environment:  - RUBYGEMS VERSION: 1.3.7  - RUBY VERSION: 1.9.2 (2010-12-25 patchlevel 136) [i386-mingw32]  - INSTALLATION DIRECTORY: D:/Ruby192/lib/ruby/gems/1.9.1  - RUBY EXECUTABLE: D:/Ruby192/bin/ruby.exe  - EXECUTABLE DIRECTORY: D:/Ruby192/bin  - RUBYGEMS PLATFORMS:    - ruby    - x86-mingw32  - GEM PATHS:     - D:/Ruby192/lib/ruby/gems/1.9.1     - C:/Documents and Settings/whz/.gem/ruby/1.9.1  - GEM CONFIGURATION:     - :update_sources => true     - :verbose => true     - :benchmark => false     - :backtrace => false     - :bulk_threshold => 1000  - REMOTE SOURCES:     - http://rubygems.org/

?

2.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

修改config.yml內容如下:

---- D:/Ruby192

?

ruby dk.rb install
5>.update your PATH
D:\DevKit\bin

?

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

?

4.安裝gem

gem install sqlite3-ruby

gem install sqlite3-1.3.3-x86-mingw32.gem

?

5.修改Gemfile

#gem 'sqlite3'gem 'sqlite3-ruby', :require => 'sqlite3'
?
  相关解决方案