环境:
windows7 32bit
ruby 2.0.0p195 (2013-05-14) [i386-mingw32]
gem 2.03
C:\devkit
首先下载sqlite源码 http://www.sqlite.org/2013/sqlite-autoconf-3071700.tar.gz
解压后放到C:\devkit的根目录下C:\devkit\home\Administrator\sqlite
点击C:\devkit\msys.bat 进入编译环境
Administrator@suntsh-PC ~
$ pwd
/home/Administrator
Administrator@suntsh-PC ~
$ ls
sqlite
Administrator@suntsh-PC ~
$ cd sqlite
Administrator@suntsh-PC ~/sqlite
$ pwd
/home/Administrator/sqlite
Administrator@suntsh-PC ~/sqlite
进入到sqlite目录后输入./configure
make
make install
编译后,复制C:\devkit\home\Administrator\sqlite\.libs目录下的sqlite3.exe和libsqlite3-0.dll到c:\ruby\bin目录下
开始安装sqlite3
gem install sqlite3 --platform=ruby -- --with-sqlite3-include=C:\devkit\home\Administrator\sqlite --with-sqlite3-lib=C:\devkit\home\Administrator\sqlite\.libs
可以安装成功
如果有问题可以联系我
email:b@geekzone.cn