我是一名编程新手,正在尝试在Windows 10上安装Ruby on Rails。
我已经尝试了多次运行gem install bundler,但总是出现SQLite3错误。
命令提示符表示要从http://www.sqlite.org/安装SQLite3,但我不知道在目录中放置它的位置。
我查看了mkmf.log,但我无法理解它告诉我的内容。
当我查看RailsInstaller的“bin”文件夹时,sqlite3.def、sqlite 3.dll、sqlite3应用程序和sqlite3_ruby(文件和批处理文件)均存在。
如果有人知道可能出错的原因以及如何修复它,我会非常感激帮助,这个问题在在线操作指南中从未发生过。
非常感谢
命令提示符消息:
An error occurred while installing sqlite3 (1.4.0), and Bundler cannot continue. Make sure that
gem install sqlite3 -v '1.4.0' --source 'https://rubygems.org/'
succeeds before bundling.In Gemfile: sqlite3
C:\Sites\test_app>gem install sqlite3 -v 1.4.0 Temporarily enhancing PATH to include DevKit... Building native extensions. This could take a while... ERROR: Error installing sqlite3: ERROR: Failed to build gem native extension.
current directory: C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/sqlite3-1.4.0/ext/sqlite3
C:/RailsInstaller/Ruby2.3.3/bin/ruby.exe -r ./siteconf20190317-7152-n0tljg.rb 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=C:/RailsInstaller/Ruby2.3.3/bin/$(RUBY_BASE_NAME) --with-sqlcipher --without-sqlcipher --with-sqlite3-config --without-sqlite3-config --with-pkg-config --without-pkg-config --with-sqlcipher --without-sqlcipher --with-sqlite3-dir --without-sqlite3-dir --with-sqlite3-include --without-sqlite3-include=${sqlite3-dir}/include --with-sqlite3-lib --without-sqlite3-lib=${sqlite3-dir}/lib
To see why this extension failed to compile, please check the mkmf.log which can be found here:
C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/extensions/x86-mingw32/2.3.0/sqlite3-1.4.0/mkmf.log
extconf failed, exit code 1
Gem files will remain installed in C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/sqlite3-1.4.0 for inspection. Results logged to C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/extensions/x86-mingw32/2.3.0/sqlite3-1.4.0/gem_make.ou