LoginSignup
13
5

More than 3 years have passed since last update.

【Rails】bundle installでbundlerが無いエラーが出る

Posted at

CircleCIおよび、Dockerイメージ作成時、bundle installをすると、以下のエラーが出てしまいました。

/usr/local/lib/ruby/2.6.0/rubygems.rb:283:in `find_spec_for_exe': Could not find 'bundler' (2.0.2) required by your /home/circleci/repo/Gemfile.lock. (Gem::GemNotFoundException)

ローカル環境では、gem install bundlerをしていたので、circleCIのconfig.ymlとDockerfileそれぞれに、gem install bundlerを書いてあげれば解決しました。

config.yml(circleCI)
- run:
          name: bundler install
          command: |
            gem install bundler
Dockerfile.
RUN gem install bundler

これらをbundle installの前に記述すれば解決です。

13
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
13
5