railsの環境構築でとまってしまい、なかなか前に進めません。エラーの原因を解決して、環境構築を終わらせたいです。
まず、rails sを実行すると>>`require': cannot load such file -- s
qlite3/sqlite3_native (LoadError)
このようなエラーがでたので、
https://qiita.com/Dexctersu/items/95068103344409876cc5
こちらのサイトを参考に解決しようとしたら解決しませんでした。
gem install sqlite3 --platform=ruby -- --with-sqlite3-include=C:/sqlite-amalgamation-3320100 --with-sqlite3-lib=C:/Ruby26-x64/bin
サイトの通りに上記のコードを実行すると下に貼ったエラーが出てきました。原因がわかる方いましたら教えていただけると幸いです
gem install sqlite3 --platform=ruby -- --with-sqlite3-include=C:/sqlite-amalgamation-3320100 --with-sqlite3-lib=C:/Ruby26-x64/bin Temporarily enhancing PATH for MSYS/MINGW... Installing required msys2 packages: mingw-w64-x86_64-sqlite3 警告: mingw-w64-x86_64-sqlite3-3.32.0-1 は最新です -- スキップ Building native extensions with: '--with-sqlite3-include=C:/sqlite-amalgamation-3320100 --with-sqlite3-lib=C:/Ruby26-x64/bin' This could take a while... ERROR: Error installing sqlite3: ERROR: Failed to build gem native extension. current directory: C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/sqlite3-1.4.2/ext/sqlite3 C:/Ruby26-x64/bin/ruby.exe -I C:/Ruby26-x64/lib/ruby/2.6.0 -r ./siteconf20200528-15920-jum86c.rb extconf.rb --with-sqlite3-include\=C:/sqlite-amalgamation-3320100 --with-sqlite3-lib\=C:/Ruby26-x64/bin *** 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:/Ruby26-x64/bin/$(RUBY_BASE_NAME) --with-sqlcipher --without-sqlcipher --with-sqlite3-config --without-sqlite3-config --with-pkg-config --without-pkg-config C:/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 C:/Ruby26-x64/lib/ruby/2.6.0/mkmf.rb:552:in `try_link0' from C:/Ruby26-x64/lib/ruby/2.6.0/mkmf.rb:570:in `try_link' from C:/Ruby26-x64/lib/ruby/2.6.0/mkmf.rb:672:in `try_ldflags' from C:/Ruby26-x64/lib/ruby/2.6.0/mkmf.rb:1832:in `pkg_config' from extconf.rb:35:in `<main>' To see why this extension failed to compile, please check the mkmf.log which can be found here: C:/Ruby26-x64/lib/ruby/gems/2.6.0/extensions/x64-mingw32/2.6.0/sqlite3-1.4.2/mkmf.log extconf failed, exit code 1 Gem files will remain installed in C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/sqlite3-1.4.2 for inspection. Results logged to C:/Ruby26-x64/lib/ruby/gems/2.6.0/extensions/x64-mingw32/2.6.0/sqlite3-1.4.2/gem_make.out
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2020/05/30 14:12
2020/05/30 14:35
2020/06/01 01:35
2020/06/01 13:30
2020/06/03 03:02
2020/06/03 11:35