前提・実現したいこと
Ruby on rails の環境構築をしたい
ここに質問の内容を詳しく書いてください。
Rails 初学者なのですが
環境構築で躓いてしまいました
下記プロゲートを参考に設定しましたが
https://prog-8.com/docs/rails-env-win
7.gem「sqlite3」の再インストール
で躓いてしまいましたご意見いただけますと幸いです。
以下のエラーメッセージが発生しました。
発生している問題・エラーメッセージ
エラーメッセージ
該当のソースコード
D:\Ruby26-x64\sample_app>gem install sqlite3 -v 1.3.13 --platform=ruby
Temporarily enhancing PATH for MSYS/MINGW...
Building native extensions. This could take a while...
ERROR: Error installing sqlite3:
ERROR: Failed to build gem native extension.
current directory: D:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/sqlite3-1.3.13/ext/sqlite3
D:/Ruby26-x64/bin/ruby.exe -I D:/Ruby26-x64/lib/ruby/2.6.0 -r ./siteconf20190514-13568-id1rqj.rb extconf.rb
checking for sqlite3.h... *** 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:/Ruby26-x64/bin/$(RUBY_BASE_NAME)
--with-sqlite3-config
--without-sqlite3-config
--with-pkg-config
--without-pkg-config
--with-sqlite3-dir
--without-sqlite3-dir
--with-sqlite3-include
--without-sqlite3-include=${sqlite3-dir}/include
--with-sqlite3-lib
--without-sqlite3-lib=${sqlite3-dir}/lib
D:/Ruby26-x64/lib/ruby/2.6.0/mkmf.rb:467:in try_do': The compiler failed to generate an executable file. (RuntimeError) You have to install development tools first. from D:/Ruby26-x64/lib/ruby/2.6.0/mkmf.rb:601:in
try_cpp'
from D:/Ruby26-x64/lib/ruby/2.6.0/mkmf.rb:1162:in block in find_header' from D:/Ruby26-x64/lib/ruby/2.6.0/mkmf.rb:959:in
block in checking_for'
from D:/Ruby26-x64/lib/ruby/2.6.0/mkmf.rb:361:in block (2 levels) in postpone' from D:/Ruby26-x64/lib/ruby/2.6.0/mkmf.rb:331:in
open'
from D:/Ruby26-x64/lib/ruby/2.6.0/mkmf.rb:361:in block in postpone' from D:/Ruby26-x64/lib/ruby/2.6.0/mkmf.rb:331:in
open'
from D:/Ruby26-x64/lib/ruby/2.6.0/mkmf.rb:357:in postpone' from D:/Ruby26-x64/lib/ruby/2.6.0/mkmf.rb:958:in
checking_for'
from D:/Ruby26-x64/lib/ruby/2.6.0/mkmf.rb:1161:in find_header' from extconf.rb:50:in
<main>'
To see why this extension failed to compile, please check the mkmf.log which can be found here:
D:/Ruby26-x64/lib/ruby/gems/2.6.0/extensions/x64-mingw32/2.6.0/sqlite3-1.3.13/mkmf.log
extconf failed, exit code 1
Gem files will remain installed in D:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/sqlite3-1.3.13 for inspection.
Results logged to D:/Ruby26-x64/lib/ruby/gems/2.6.0/extensions/x64-mingw32/2.6.0/sqlite3-1.3.13/gem_make.out
Ruby
1ソースコード
試したこと
MSYS2・Sqlite3の再インストール
ここに問題に対して試したことを記載してください。