rubyinstaller-2.0.0-p247-x64.exe
DevKit-mingw64-64-4.7.2-20130224-1432-sfx.exe
再 cmd 里切换到 D:\dev
ruby dk.rb init
修改 config.yml 里增加 ruby sdk 路径
ruby dk.rb -f install
ruby dk.rb review
查看一下结果即可
不一定要 mysql server 版本的,只要有 mysql-connector 即可
C:\Users\Administrator>gem install mysql2 --platform=ruby -- '--with-mysql-lib="D:\Ruby200-x64\mysql-connector-c-6.1.2-winx64\lib" --with-mysql-include="D:\Ruby200-x64\mysql-connector-c-6.1.2-winx64\include"
Temporarily enhancing PATH to include DevKit...
Building native extensions with: '--with-mysql-lib="D:\Ruby200-x64\mysql-connect
or-c-6.1.2-winx64\lib" --with-mysql-include="D:\Ruby200-x64\mysql-connector-c-6
.1.2-winx64\include"'
This could take a while...
Successfully installed mysql2-0.3.14
Parsing documentation for mysql2-0.3.14
unable to convert "\x90" from ASCII-8BIT to UTF-8 for lib/mysql2/mysql2.so, skip
ping
Installing ri documentation for mysql2-0.3.14
1 gem installed
最后要把 D:\Ruby200-x64\mysql-connect or-c-6.1.2-winx64\lib\libmysql.dll 放到 Ruby200-x64\bin
gem install sdoc
Could not verify the SSL certificate for https://rubygems.org/. There is a chance you are experiencing a man-in-the-middle attack, but most likely your system doesn't have the CA certificates needed for verification. For information about OpenSSL certificates, see bit.ly/ssl-certs. To connect without using SSL, edit your Gemfile sources and change 'https' to 'http'.
为啥不让 ssl 待查原因
runnerw.exe D:\Ruby200-x64\bin\ruby.exe -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) D:/rubyproject/pp/bin/rails server -b 127.0.0.1 -p 3000 -e development
D:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/mysql2-0.3.14/lib/mysql2/mysql2.so: [BUG] Segmentation fault
ruby 2.0.0p247 (2013-06-27) [x64-mingw32]
-- Control frame information -----------------------------------------------
c:0020 p:-9664014 s:0068 e:000067 TOP [FINISH]
c:0019 p:---- s:0066 e:000065 CFUNC :require
c:0018 p:0083 s:0062 e:000061 TOP D:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/mysql2-0.3.14/lib/mysql2.rb:8 [FINISH]