前提・実現したいこと
windows10でのrailsを使うための環境構築をしていたところ、gemのインストールでエラーが出てしまいました。
sqlite3をインストールしたいです。
参考サイトは、
Ruby on Rails の環境構築をしてみよう
です。
No match for 'psych (= 3.1.0)' on this platform. Found: x64-mingw32
このエラーメッセージの意味と、どうやったら解決するか、可能な限り専門用語を使わないでいただけたらありがたいです。
発生している問題・エラーメッセージ
参考サイトの手順通りにやっていたのですが、このようなエラーメッセージが表示されてしまいます。
C:\Users\sample_app>gem install sqlite3 -v 1.3.13 --platform=ruby ERROR: While executing gem ... (Gem::UnsatisfiableDependencyError) Unable to resolve dependency: No match for 'psych (= 3.1.0)' on this platform. Found: x64-mingw32 #rails sを使った時のエラーメッセージも上げておきます C:\Users\sample_app>rails server Traceback (most recent call last): 18: from bin/rails:4:in `<main>' 17: from bin/rails:4:in `require' 16: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/railties-5.0.7.2/lib/rails/commands.rb:18:in `<top (required)>' 15: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/railties-5.0.7.2/lib/rails/commands/commands_tasks.rb:49:in `run_command!' 14: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/railties-5.0.7.2/lib/rails/commands/commands_tasks.rb:85:in `server' 13: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/railties-5.0.7.2/lib/rails/commands/commands_tasks.rb:85:in `tap' 12: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/railties-5.0.7.2/lib/rails/commands/commands_tasks.rb:88:in `block in server' 11: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/railties-5.0.7.2/lib/rails/commands/commands_tasks.rb:88:in `require' 10: from C:/Users/大輝/sample_app/config/application.rb:7:in `<top (required)>' 9: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/bundler-1.17.3/lib/bundler.rb:114:in `require' 8: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/bundler-1.17.3/lib/bundler/runtime.rb:65:in `require' 7: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/bundler-1.17.3/lib/bundler/runtime.rb:65:in `each' 6: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/bundler-1.17.3/lib/bundler/runtime.rb:76:in `block in require' 5: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/bundler-1.17.3/lib/bundler/runtime.rb:76:in `each' 4: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/bundler-1.17.3/lib/bundler/runtime.rb:81:in `block (2 levels) in require' 3: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/bundler-1.17.3/lib/bundler/runtime.rb:81:in `require' 2: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sqlite3-1.3.13-x64-mingw32/lib/sqlite3.rb:2:in `<top (required)>' 1: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sqlite3-1.3.13-x64-mingw32/lib/sqlite3.rb:6:in `rescue in <top (required)>' C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sqlite3-1.3.13-x64-mingw32/lib/sqlite3.rb:6:in `require': cannot load such file -- sqlite3/sqlite3_native (LoadError)
試したこと
ridk exec pacman -S mingw-w64-x86_64-sqlite3をもう一度してからインストールを行たのですが、同じエラーが出てしまいます。
関係あるかわかりませんが、ubuntu環境では1度、railsの環境設定をしてあります。
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。