#環境
OS: Windows10 Home 64bit
Ruby: 2.5.3p105
Ruby on Rails: 5.2.3
SQLite3: 3.27.2
Node.js: 10.15.3
#エラー内容
Railsの入門書の通りにRuby, SQLite, Node.js, Railsのインストールを行い、
$ rails new Appname
を打った後に、
$ rails server
を実行し、サーバを起動させようと思ったら
Could not find gem 'sqlite3 x64-mingw32' in any of the gem sources listed in your Gemfile. Run `bundle install` to install missing gems.
と出ました。
おそらく$bundle install と実行しろ的なことが書いてあるのかなと思ったのでそれを打って実行すると、次のようなエラーがでました。
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
恥ずかしながら私はあまり英語が得意でなく、Google翻訳にかけて
$gem install sqlite3 -v '1.4.0' --source 'https://rubygems.org/'
を実行しろという意味なのかと思い実行してもまたエラーが出ました。
ERROR: Error installing sqlite3: ERROR: Failed to build gem native extension. current directory: C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sqlite3-1.4.0/ext/sqlite3
これ以上調べても私の知識ではよく分からなかったので、どなたかこれらのエラーの解決方法を教えて頂けないでしょうか。よろしくお願いします。
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/04/17 06:07