下面的错误出现:问题在sqlite3的安装
C:\gem>gem install sqlite3-ruby --local
Building native extensions. This could take a while...
ERROR: Error installing sqlite3-ruby:
ERROR: Failed to build gem native extension.
C:/Ruby/bin/ruby.exe extconf.rb
checking for #include <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
--srcdir=.
--curdir
--ruby=C:/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}/lib
Gem files will remain installed in C:/Ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby-1
.3.0 for inspection.
Results logged to C:/Ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.3.0/ext/sqlite3/
gem_make.out
我复制所有在Ruby/bin文件夹所必需的文件,它仍然保持报告这个错误sqlite3.h丢失。
请确认我在哪里放置sqlite3.h,当我在本地安装gem时,您可以看到,我正在使用1.3.0版本的SQLite3进行安装。 我已经尝试过针对类似问题发布的解决方案。我正在使用Windows XP。
在此先感谢。
愚蠢的问题,你可能实际上已经回答了它,但我没有注意到 - 但你真的安装了sqlite3的可执行文件,因为宝石建议? – Chowlett 2010-07-05 13:22:26
我实际上已经复制了可执行文件sqlite3.exe,.dll文件以及一些其他必需的文件,这些文件都是我所做的,我没有经过任何安装过程。 – 2010-07-05 15:17:49