# \#bundler

**URL:** https://discuss.circleci.com/tag/bundler/14.md

[Latest](https://discuss.circleci.com/latest.md) · [Categories](https://discuss.circleci.com/categories.md) · [Tags](https://discuss.circleci.com/tags.md)

---

## [How does Bundler get updated in cimg/ruby?](https://discuss.circleci.com/t/how-does-bundler-get-updated-in-cimg-ruby/48308)

<div class="topic-metadata">

**Author:** [@smaboshe](https://discuss.circleci.com/u/smaboshe)\
**Replies:** 2\
**Last updated:** [June 26, 2023, 12:43pm UTC](https://discuss.circleci.com/t/how-does-bundler-get-updated-in-cimg-ruby/48308 "2023-06-26T12:43:02Z")

</div>

Hello! I’m using cimg/ruby:3.2.2. It comes pre-packaged with Bundler 2.4.10. At the moment of writing, Bundler 2.4.13 is available. How can I get Bundler 2.4.13 to work with this CircleCI image? Thanks in advance for y…

---

## [Bundle exec doesn't work in rails app inside docker, Locals gems lists everything fine](https://discuss.circleci.com/t/bundle-exec-doesnt-work-in-rails-app-inside-docker-locals-gems-lists-everything-fine/43065)

<div class="topic-metadata">

**Author:** [@OVMIR](https://discuss.circleci.com/u/OVMIR)\
**Replies:** 0\
**Last updated:** [February 25, 2022, 4:31pm UTC](https://discuss.circleci.com/t/bundle-exec-doesnt-work-in-rails-app-inside-docker-locals-gems-lists-everything-fine/43065 "2022-02-25T16:31:02Z")

</div>

Hi, I have been having a hard time getting my CI/CD to work back up after some modifications to the docker-compose file, I am using now ruby:2.6.9-alpine3.15 image to set up my docker container. After successfully buil…

---

## [Bundler / Ruby caching dependencies](https://discuss.circleci.com/t/bundler-ruby-caching-dependencies/36898)

<div class="topic-metadata">

**Author:** [@wyardley](https://discuss.circleci.com/u/wyardley)\
**Replies:** 2\
**Last updated:** [January 14, 2022, 5:10pm UTC](https://discuss.circleci.com/t/bundler-ruby-caching-dependencies/36898 "2022-01-14T17:10:59Z")

</div>

Looking at https://circleci.com/docs/2.0/caching/#bundler-ruby and https://discuss.circleci.com/t/partial-cache-restoration-bundler/24783/3 I’m trying to follow the recommendation to run a bundle cache clean --force bef…

---

## [Bundler not resolving the right dependencies](https://discuss.circleci.com/t/bundler-not-resolving-the-right-dependencies/37492)

<div class="topic-metadata">

**Author:** [@chloelbn](https://discuss.circleci.com/u/chloelbn)\
**Replies:** 2\
**Last updated:** [September 24, 2020, 8:25pm UTC](https://discuss.circleci.com/t/bundler-not-resolving-the-right-dependencies/37492 "2020-09-24T20:25:07Z")

</div>

Hi everyone! I’m facing an issue on my bundle install step, my Gemfile is as follow source 'https://rubygems.org' gemspec gem 'minitest-ci' group :development do gem 'git-precommit' gem 'steep' gem 'yard' end b…

---

## [Latest Bundler fails to be used even when explicitly installed](https://discuss.circleci.com/t/latest-bundler-fails-to-be-used-even-when-explicitly-installed/34387)

<div class="topic-metadata">

**Author:** [@kyleboe](https://discuss.circleci.com/u/kyleboe)\
**Replies:** 8\
**Last updated:** [February 13, 2020, 11:55pm UTC](https://discuss.circleci.com/t/latest-bundler-fails-to-be-used-even-when-explicitly-installed/34387 "2020-02-13T23:55:33Z")

</div>

I am running into issues when attempting to use latest bundler (2.1.4) with docker. Even when checking bundler’s version I get errors: #!/bin/bash -eo pipefail bundle -v Traceback (most recent call last): 2: from /usr…

---

## [Bundle install can't access to the custom Gem in Github private repository](https://discuss.circleci.com/t/bundle-install-cant-access-to-the-custom-gem-in-github-private-repository/31556)

<div class="topic-metadata">

**Author:** [@DariuszMusielak](https://discuss.circleci.com/u/DariuszMusielak)\
**Replies:** 2\
**Last updated:** [August 15, 2019, 10:22am UTC](https://discuss.circleci.com/t/bundle-install-cant-access-to-the-custom-gem-in-github-private-repository/31556 "2019-08-15T10:22:39Z")

</div>

Hi, I have an issue. I have a project working with CircleCI for a long time. In last terms, we decided to extract some logic to separate Gem - also located on Github. Here I faced my issue. When I do: run: bundle inst…

---

## ["Could not find did\_you\_mean-1.3.0 in any of the sources"](https://discuss.circleci.com/t/could-not-find-did-you-mean-1-3-0-in-any-of-the-sources/29907)

<div class="topic-metadata">

**Author:** [@localhostdotdev](https://discuss.circleci.com/u/localhostdotdev)\
**Replies:** 1\
**Last updated:** [April 21, 2019, 3:37am UTC](https://discuss.circleci.com/t/could-not-find-did-you-mean-1-3-0-in-any-of-the-sources/29907 "2019-04-21T03:37:14Z")

</div>

hi, I’m not doing anything fancy, just trying to get my build running on circleci. weirdly there isn’t bundler on the ruby docker images it seems. and then after running bundle install then doing bundle exec rails db:…

---

## [Rubygems with native dependencies are being reinstalled after cache restore](https://discuss.circleci.com/t/rubygems-with-native-dependencies-are-being-reinstalled-after-cache-restore/29759)

<div class="topic-metadata">

**Author:** [@jbelkins](https://discuss.circleci.com/u/jbelkins)\
**Replies:** 1\
**Last updated:** [April 13, 2019, 3:26pm UTC](https://discuss.circleci.com/t/rubygems-with-native-dependencies-are-being-reinstalled-after-cache-restore/29759 "2019-04-13T15:26:33Z")

</div>

When restoring cached Rubygems from a previous build, my VM is always reinstalling & rebuilding gems that have native extensions, even when they were restored from the cache. I am running a macOS VM with Xcode 10.2, Rub…

---

## [Bundle Install fails with Ruby 2.6.1 Bundler version 1.15.2 when fetching gems for repository](https://discuss.circleci.com/t/bundle-install-fails-with-ruby-2-6-1-bundler-version-1-15-2-when-fetching-gems-for-repository/28808)

<div class="topic-metadata">

**Author:** [@PhilCoggins](https://discuss.circleci.com/u/PhilCoggins)\
**Replies:** 4\
**Last updated:** [March 8, 2019, 12:00am UTC](https://discuss.circleci.com/t/bundle-install-fails-with-ruby-2-6-1-bundler-version-1-15-2-when-fetching-gems-for-repository/28808 "2019-03-08T00:00:54Z")

</div>

I am encountering errors when running bundle install with bundler version 1.15.2 (to match Heroku version). This issue pops up when installing gems from a repository (like on GitHub). image: circleci/ruby:2.6.1-node-br…

---

## [Using Bundler 2.0 during CI fails](https://discuss.circleci.com/t/using-bundler-2-0-during-ci-fails/27411)

<div class="topic-metadata">

**Author:** [@czj](https://discuss.circleci.com/u/czj)\
**Replies:** 4\
**Last updated:** [February 12, 2019, 12:28pm UTC](https://discuss.circleci.com/t/using-bundler-2-0-during-ci-fails/27411 "2019-02-12T12:28:34Z")

</div>

Hi, I’m having trouble with using Bundler 2.0 on Circle CI 2.0. I’ve checked a 2 years old issue that’s been resolved, tried several configuration but none worked. When upgrading bundler to 2.0 it works : gem …

---

## [Gem::GemNotFoundException: can't find gem bundler (\>= 0.a)m Error](https://discuss.circleci.com/t/gem-cant-find-gem-bundler-0-a-m-error/27926)

<div class="topic-metadata">

**Author:** [@karuna24s](https://discuss.circleci.com/u/karuna24s)\
**Replies:** 2\
**Last updated:** [January 26, 2019, 11:58am UTC](https://discuss.circleci.com/t/gem-cant-find-gem-bundler-0-a-m-error/27926 "2019-01-26T11:58:33Z")

</div>

Received the following error beginning about 11 hours ago, when I run my build this on CircleCI: #!/bin/bash -eo pipefail bundle install --jobs=4 --retry=3 --path vendor/bundle Gem::GemNotFoundException: can't find gem …

---

## [Bundler 2.0 was released! and bundler may not be happy](https://discuss.circleci.com/t/bundler-2-0-was-released-and-bundler-may-not-be-happy/27521)

<div class="topic-metadata">

**Author:** [@KyleTryon](https://discuss.circleci.com/u/KyleTryon)\
**Replies:** 0\
**Last updated:** [January 7, 2019, 7:28pm UTC](https://discuss.circleci.com/t/bundler-2-0-was-released-and-bundler-may-not-be-happy/27521 "2019-01-07T19:28:13Z")

</div>

https://bundler.io/blog/2019/01/03/announcing-bundler-2.html Key Points: Bundler 2.0 was released Jan 3rd. Bundler 2 requires RubyGems 3.0 gem update --system Bundler 2 will install with: gem install bundler The fo…

---

## [Partial Cache Restoration & Bundler](https://discuss.circleci.com/t/partial-cache-restoration-bundler/24783)

<div class="topic-metadata">

**Author:** [@JamesChevalier](https://discuss.circleci.com/u/JamesChevalier)\
**Replies:** 1\
**Last updated:** [November 19, 2018, 9:28pm UTC](https://discuss.circleci.com/t/partial-cache-restoration-bundler/24783 "2018-11-19T21:28:43Z")

</div>

I’m confused about the code block in the Bundler (Ruby) section here: https://circleci.com/docs/2.0/caching/#bundler-ruby The code block in question is: - run: bundle install & bundle clean - restore\_cache: keys: …

---

## [Checksum different before and after bundle install](https://discuss.circleci.com/t/checksum-different-before-and-after-bundle-install/17334)

<div class="topic-metadata">

**Author:** [@rgpass](https://discuss.circleci.com/u/rgpass)\
**Replies:** 13\
**Last updated:** [September 15, 2018, 4:04am UTC](https://discuss.circleci.com/t/checksum-different-before-and-after-bundle-install/17334 "2018-09-15T04:04:05Z")

</div>

My CircleCI 2.0 config.yml: version: 2 jobs: build: docker: - image: circleci/ruby:2.3.4 working\_directory: ~/repo steps: - checkout - run: echo "Running from .circleci/config.yml" …

---

## [Unable to restore bundle from cache using circleci/ruby docker images](https://discuss.circleci.com/t/unable-to-restore-bundle-from-cache-using-circleci-ruby-docker-images/24249)

<div class="topic-metadata">

**Author:** [@dominicsayers](https://discuss.circleci.com/u/dominicsayers)\
**Replies:** 7\
**Last updated:** [August 14, 2018, 11:17am UTC](https://discuss.circleci.com/t/unable-to-restore-bundle-from-cache-using-circleci-ruby-docker-images/24249 "2018-08-14T11:17:31Z")

</div>

Using the Docker image circleci/ruby it’s impossible to restore a bundler cache saved to the default location of /usr/local/bundle. The image already has a /usr/local/bundle directory pre-created by the root user. $ ls…

---

## [CircleCI 2.0 iOS - Error installing Gems](https://discuss.circleci.com/t/circleci-2-0-ios-error-installing-gems/23291)

<div class="topic-metadata">

**Author:** [@chambois](https://discuss.circleci.com/u/chambois)\
**Replies:** 7\
**Last updated:** [August 2, 2018, 5:35pm UTC](https://discuss.circleci.com/t/circleci-2-0-ios-error-installing-gems/23291 "2018-08-02T17:35:30Z")

</div>

Hi folks, We’re in the process of migrating our iOS build from CircleCI 1.0 to 2.0 and are running into a problem with installing gems. When we try to run bundle install we get the following output: Fetching source in…

---

## [Error with installing bundler](https://discuss.circleci.com/t/error-with-installing-bundler/18085)

<div class="topic-metadata">

**Author:** [@mmarini](https://discuss.circleci.com/u/mmarini)\
**Replies:** 18\
**Last updated:** [June 4, 2018, 9:19pm UTC](https://discuss.circleci.com/t/error-with-installing-bundler/18085 "2018-06-04T21:19:00Z")

</div>

I’m trying to run some builds that were previously running, however I’m receiving the following error when the bundler gem is attempting to be installed. #!/bin/bash -eo pipefail gem install bundler rake Fetching: bundl…

---

## [Bundle install failing with "bad interpreter"](https://discuss.circleci.com/t/bundle-install-failing-with-bad-interpreter/19614)

<div class="topic-metadata">

**Author:** [@techpeace](https://discuss.circleci.com/u/techpeace)\
**Replies:** 8\
**Last updated:** [February 1, 2018, 2:16am UTC](https://discuss.circleci.com/t/bundle-install-failing-with-bad-interpreter/19614 "2018-02-01T02:16:40Z")

</div>

My ruby builds just started failing during bundle install: bundle check --path=vendor/bundle || bundle install --path=vendor/bundle --jobs=4 --retry=3 bash: /opt/circleci/.rvm/rubies/ruby-2.5.0/bin/bundle: /home/travi…

---

## [\`bundle install\` stopped working today in 2.0 using circleci docker image](https://discuss.circleci.com/t/bundle-install-stopped-working-today-in-2-0-using-circleci-docker-image/18484)

<div class="topic-metadata">

**Author:** [@mazikwyry](https://discuss.circleci.com/u/mazikwyry)\
**Replies:** 9\
**Last updated:** [January 11, 2018, 3:07pm UTC](https://discuss.circleci.com/t/bundle-install-stopped-working-today-in-2-0-using-circleci-docker-image/18484 "2018-01-11T15:07:19Z")

</div>

bundle install stopped working today. The fix we did was to upgrade bundler version to 1.16, cos 1.15 which is available was casing error /usr/local/bin/bundle:23:in \`load': cannot load such file -- /usr/local/lib/ruby/…

---

## [Multiple Rails engines bundle install error](https://discuss.circleci.com/t/multiple-rails-engines-bundle-install-error/17902)

<div class="topic-metadata">

**Author:** [@peara](https://discuss.circleci.com/u/peara)\
**Replies:** 3\
**Last updated:** [January 9, 2018, 7:31am UTC](https://discuss.circleci.com/t/multiple-rails-engines-bundle-install-error/17902 "2018-01-09T07:31:47Z")

</div>

Hi, We have a Rails app with 2 engines. Those engines require each others like this: engine\_1 is independent. engine\_2 requires engine\_1. The app requires both engines. We have test in /spec/dummy from each engine’…

---

## [One of our builds has randomly started failing on the bundle install stage](https://discuss.circleci.com/t/one-of-our-builds-has-randomly-started-failing-on-the-bundle-install-stage/17068)

<div class="topic-metadata">

**Author:** [@pazaricha](https://discuss.circleci.com/u/pazaricha)\
**Replies:** 1\
**Last updated:** [October 4, 2017, 8:05am UTC](https://discuss.circleci.com/t/one-of-our-builds-has-randomly-started-failing-on-the-bundle-install-stage/17068 "2017-10-04T08:05:44Z")

</div>

This is the build: https://circleci.com/gh/Funzing/funzing-server/10626 it says it’s failing for this reason: bundle check --path=vendor/bundle || bundle install --path=vendor/bundle --jobs=4 --retry=3 The git source …

---

## [Formerly passed tests failed due to missing rake gem](https://discuss.circleci.com/t/formerly-passed-tests-failed-due-to-missing-rake-gem/10635)

<div class="topic-metadata">

**Author:** [@flowerett](https://discuss.circleci.com/u/flowerett)\
**Replies:** 1\
**Last updated:** [July 21, 2017, 4:26am UTC](https://discuss.circleci.com/t/formerly-passed-tests-failed-due-to-missing-rake-gem/10635 "2017-07-21T04:26:30Z")

</div>

All my builds are now failed with next error: export RAILS\_ENV="test" export RACK\_ENV="test" bundle exec rake db:create db:schema:load --trace Your bundle is locked to rake (12.0.0), but that version could not be found…

---

## [Gem installed but "its extensions are not built"](https://discuss.circleci.com/t/gem-installed-but-its-extensions-are-not-built/7126)

<div class="topic-metadata">

**Author:** [@databyte](https://discuss.circleci.com/u/databyte)\
**Replies:** 5\
**Last updated:** [April 13, 2017, 3:34am UTC](https://discuss.circleci.com/t/gem-installed-but-its-extensions-are-not-built/7126 "2017-04-13T03:34:09Z")

</div>

I have a weird issue. The bundle install works fine but none of the extensions are installed. I enabled ssh for the build box and while I'm on there, I can see the following: ubuntu@box392:~/www.clockwisemd.com$ bun…

---

## [Issues with latest release of Bundler](https://discuss.circleci.com/t/issues-with-latest-release-of-bundler/9831)

<div class="topic-metadata">

**Author:** [@Eric](https://discuss.circleci.com/u/Eric)\
**Replies:** 5\
**Last updated:** [February 13, 2017, 5:41am UTC](https://discuss.circleci.com/t/issues-with-latest-release-of-bundler/9831 "2017-02-13T05:41:09Z")

</div>

Many users are reporting issues with the latest release of bundler, which gets upgrade automatically if they don't pin it. The broken versions are 1.14.x, anything 1.13.x should be stable.

---

## [Bundler consistently failing](https://discuss.circleci.com/t/bundler-consistently-failing/10034)

<div class="topic-metadata">

**Author:** [@scottrhoyt](https://discuss.circleci.com/u/scottrhoyt)\
**Replies:** 7\
**Last updated:** [February 8, 2017, 2:30am UTC](https://discuss.circleci.com/t/bundler-consistently-failing/10034 "2017-02-08T02:30:09Z")

</div>

We use bundler to install dependencies for our iOS build (namely fastlane). Over the past 24 hours, our builds have been consistently failing during bundle install because of what appears to be a timeout error in fetchin…

---

## [Bundle on CircleCI can't find new version of my gem](https://discuss.circleci.com/t/bundle-on-circleci-cant-find-new-version-of-my-gem/7518)

<div class="topic-metadata">

**Author:** [@hult](https://discuss.circleci.com/u/hult)\
**Replies:** 0\
**Last updated:** [October 19, 2016, 2:57pm UTC](https://discuss.circleci.com/t/bundle-on-circleci-cant-find-new-version-of-my-gem/7518 "2016-10-19T14:57:10Z")

</div>

Hi, I have a private project building on Circle CI, which depends on a public gem I maintain, acts\_as\_having\_string\_id. Whenever I release a new version of the gem, and make my private project depend on it, the Circle …

---

## [Bundler fails to find appropriate version, despite installing appropriate version earlier in the build](https://discuss.circleci.com/t/bundler-fails-to-find-appropriate-version-despite-installing-appropriate-version-earlier-in-the-build/2815)

<div class="topic-metadata">

**Author:** [@CJBridges](https://discuss.circleci.com/u/CJBridges)\
**Replies:** 41\
**Last updated:** [September 26, 2016, 7:34am UTC](https://discuss.circleci.com/t/bundler-fails-to-find-appropriate-version-despite-installing-appropriate-version-earlier-in-the-build/2815 "2016-09-26T07:34:33Z")

</div>

We set bundler to a fixed version (1.10.6) on CircleCI. We have a block in circle.yml as follows to set up that dependency: dependencies: pre: - gem install bundler -v 1.10.6 Despite this step explicitly succe…

---

## [Bundle Install Fails, but gem install works?](https://discuss.circleci.com/t/bundle-install-fails-but-gem-install-works/5432)

<div class="topic-metadata">

**Author:** [@nuthintrue](https://discuss.circleci.com/u/nuthintrue)\
**Replies:** 1\
**Last updated:** [July 29, 2016, 8:20pm UTC](https://discuss.circleci.com/t/bundle-install-fails-but-gem-install-works/5432 "2016-07-29T20:20:57Z")

</div>

Circle CI complains that it cannot install one of the gem dependencies when I am intended to install aws-sdk: Could not find aws-sdk-core-2.3.0 in any of the sources So I have decided to SSH into the Circle CI contain…

---

## [Rails Engine Builds On Top Of Docker Randomly Failling](https://discuss.circleci.com/t/rails-engine-builds-on-top-of-docker-randomly-failling/5281)

<div class="topic-metadata">

**Author:** [@diegodillenburg](https://discuss.circleci.com/u/diegodillenburg)\
**Replies:** 0\
**Last updated:** [July 23, 2016, 4:48am UTC](https://discuss.circleci.com/t/rails-engine-builds-on-top-of-docker-randomly-failling/5281 "2016-07-23T04:48:25Z")

</div>

Hello everyone, I'm facing an issue at the company I'm working as we migrate our build to a Docker based environment. Everything seems to be pretty fine, except that builds suddenly fail, even green builds if rebuilt c…

---

## [Caching private gems efficiently](https://discuss.circleci.com/t/caching-private-gems-efficiently/5252)

<div class="topic-metadata">

**Author:** [@jacob-s-son](https://discuss.circleci.com/u/jacob-s-son)\
**Replies:** 0\
**Last updated:** [July 21, 2016, 1:37pm UTC](https://discuss.circleci.com/t/caching-private-gems-efficiently/5252 "2016-07-21T13:37:48Z")

</div>

At ScoutRFP we use GH auth tokens to fetch private gems on our servers via HTTPS. At first I've decided to employ the same strategy when moving our builds to CircleCI. It was working fine except the one thing - bundle ch…

[Next page](https://discuss.circleci.com/tag/bundler/14.md?match_all_tags=true&page=1&tags%5B%5D=bundler)
