4

宝石をインストールしようとするたびに:

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>

これはインストールの 2 回目の試行であり、同じエラー メッセージが再び表示されます。

4

3 に答える 3

1

問題は、1.9.3 ではなく ruby​​ 2.x (現在はベータ版で、sqlite3 では動作しない) を使用していたことです。

于 2013-06-27T22:48:20.497 に答える
-1

明らかに、エラーメッセージには「SQLite3をインストールしてください...最初に」と表示されます。

試す:

gem install sqlite3

これで問題が解決した場合は、お知らせください。

于 2013-05-11T21:02:57.100 に答える