安装sqlite3-ruby gem失败

4
每当我尝试安装gem时:
gem install sqlite3-ruby

我得到以下输出:
D:/Ruby/bin/ruby.exe extconf.rb
checking for sqlite3.h... no
sqlite3.h is missing. Install SQLite3 from http://www.sqlite.org/ first.
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=D:/Ruby/bin/ruby
--with-sqlite3-dir
--without-sqlite3-dir
--with-sqlite3-include
--without-sqlite3-include=${sqlite3-dir}/include
--with-sqlite3-lib
--without-sqlite3-lib=${sqlite3-dir}/
--enable-local
--disable-local

我已经在Windows上正确安装了sqlite3:

D:\>sqlite3
SQLite version 3.7.16.2 2013-04-12 11:52:43
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite>

这是我第二次尝试安装,但仍然收到相同的错误提示。
3个回答

1
问题在于我使用了Ruby 2.x(目前为测试版,无法与sqlite3正常工作),而不是1.9.3。

0

-1

显然,你的错误信息说“首先安装SQLite3……”。

尝试:

gem install sqlite3

如果这解决了您的问题,请告诉我。


当我输入 gem install sqlite3 时,我得到了与我的第一篇帖子中相同的错误消息。 - user2192677

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接