前提・実現したいこと
sqlite3をインストールしたいです
発生している問題・エラーメッセージ
Ruby on Railsの実行環境を作るときにsqlite3がインストールできません
windows10で、ShellはGitBashです
初心者で非常に困っています
checking for -ldl... no checking for dlopen()... no missing function dlopen
$ gem install sqlite3
ERROR: Error installing sqlite3:
ERROR: Failed to build gem native extension.
current directory: C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/sqlite3-1.4.0/ext/sqlite3
C:/Ruby24-x64/bin/ruby.exe -r ./siteconf20190402-2304-1la49cn.rb extconf.rb
checking for sqlite3.h... yes
checking for pthread_create() in -lpthread... yes
checking for -ldl... no
checking for dlopen()... no
missing function dlopen
*** 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:/Ruby24-x64/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
--with-pthreadlib
--without-pthreadlib
--with-dllib
--without-dllib
該当のソースコード
gem install sqlite3
試したこと
いろんなページを見てバージョンを下げてみたり
ページと全く同じバージョンでそろえて同じ操作をしてもなぜかダメでした
RubyInstaller2のREADME.mdに書いてあった方法もダメでした
https://qiita.com/yoru722/items/8a633d71148de0f0ae1f
こういう方法でやってみたりして格闘していましたが結局ダメでした
補足情報(FW/ツールのバージョンなど)
今はRuby:2.5.1,Rails:5.2.3です
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。