MENU

【Rails】bundle installが通らないとき

EC2上でgit cloneした後に「puma」起動前の設定をしようとしたら、
bundle install --path vendor/bundle --without test development
he dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`.
Fetching gem metadata from https://rubygems.org/............
Your bundle is locked to refile (0.6.2), but that version could not be found in any of the
sources listed in your Gemfile. If you haven't changed sources, that means the author of
refile (0.6.2) has removed it. You'll need to update your bundle to a version other than
refile (0.6.2) that hasn't been removed in order to install.

エラー、

gem install refile -v '0.6.2'

とりあえず、「refile」インストール

bundle config build.refile

このコマンドを打って

bundle update

bundle updateしたらエラーが消えました。

よかったらシェアしてね!

この記事を書いた人

目次
閉じる