My problem was that I did:

sudo gem install bundler

So I had installed as root rather than as myself. So I uninstalled as root, then installed as myself:

sudo gem uninstall bundler
gem install bundler
rbenv rehash

(last command for if you are using rbenv)

And it worked. The "correct" path was in .bashrc (or other shell profile), at least according to

$PATH
=> zsh: /Users/myself/.rbenv/shims:/Users/myself/.rbenv/bin: ... etc

but it was expecting it to be installed for myself - not for root. In my case, its rightful installation place is in ~/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/bundler

Answer from xxjjnn on Stack Overflow
🌐
Reddit
reddit.com › r/ruby › bundle command not find
r/ruby on Reddit: bundle command not find
October 10, 2025 -

hi i am a big noob
i use gem install bundler to install bundle and i use bundle install to install my Gemfile
but bundle command not find
can someone help?
and another question
are bundler and bundle same or they are different thing?

Discussions

No bundle shim; rbenv: bundle: command not found
I'm trying to install rbenv on a machine that previously had rvm installed. I've followed the various instructions to remove all vestiges of rvm. But I have the following problems, which I ... More on github.com
🌐 github.com
31
April 8, 2014
bash: bundle: command not found
Preliminary Steps Please confirm you have... reviewed the Troubleshooting docs, considered implementing an override, verified an issue has not already been logged for your issue (linguist issues). ... More on github.com
🌐 github.com
13
April 15, 2019
centos - gem install bundler, bundle not working - Unix & Linux Stack Exchange
$ sudo bundle -v sudo: bundle: command not found $ sudo type -f bundle sudo: type: command not found More on unix.stackexchange.com
🌐 unix.stackexchange.com
July 2, 2018
command not found
I need help trying to figure why I am getting the "command not found" error when I try to do: bundle exec middleman This used to work, but I needed to reinstall bundler (probably after an OS upgrad... More on github.com
🌐 github.com
24
September 1, 2017
🌐
GitHub
github.com › rbenv › rbenv › issues › 576
No bundle shim; rbenv: bundle: command not found · Issue #576 · rbenv/rbenv
April 8, 2014 - Trying to install nokogiri 1.6.0 gives an error indicating the bundle command can't find the ruby 1.9.2 version that rbenv says is the current one.
Author   genlighten
🌐
Computer Forum
computerforum.com › home › forums › computer software › general software
bundle: command not found | Computer Forum
September 1, 2022 - Last login: Thu Sep 1 17:29:22 2022 from 10.0.2.2 vagrant@vagrant:~$ bundle exec rackup -o 0.0.0.0 -bash: bundle: command not found vagrant@vagrant:~$ After that problem is fixed, the neocities install instructions says: Now you can access the running site from your browser: http://127.0.0.1:9292
🌐
GitHub
github.com › github › linguist › issues › 4495
bash: bundle: command not found · Issue #4495 · github-linguist/linguist
April 15, 2019 - bundle exec bin/github-linguist --breakdown bash: bundle: command not found ·
Author   drandreaskrueger
Find elsewhere
🌐
GitHub
github.com › rubygems › bundler › issues › 5996
command not found · Issue #5996 · rubygems/bundler
September 1, 2017 - This used to work, but I needed to reinstall bundler (probably after an OS upgrade) and since then it no longer works. "bundle check" does not report any errors. There is an executable script "middleman" in /Library/Ruby/Gems/2.0.0/gems/middleman-core-3.4.0/bin.
Author   cbfiddle
🌐
Render
render.discourse.group › t › bundle-command-not-found › 6963
Bundle command not found - Render
November 11, 2022 - I used this as the ‘build’ command: ./bin/render-build.sh I then used this as the ‘start’ command: bundle exec puma -C config/puma.rb This is the error that I am currently getting: Nov 9 07:33:52 PM ./bin/render-build.sh: line 11: bundle: command not found Nov 9 07:33:52 PM ==> Build ...
🌐
Ruby on Rails
discuss.rubyonrails.org › rubyonrails-talk
no bundle command? - rubyonrails-talk - Ruby on Rails Discussions
July 10, 2010 - First of all, I had to run "sudo" to install bundler cause it was complaining that it didn't have access to /var/ruby blah what ever So now bundler is installed, if i run gem list bundler is among one of them Now if i …
🌐
CircleCI
discuss.circleci.com › build environment
Rails Bundle command missing - was working - Build Environment - CircleCI Discuss
January 3, 2019 - Anyone else having issues with bundle missing from the build image? I know this was a problem with with bundler a while back, but I thought it was fixed. My builds were working with the same configuration settings just last month. Here is the command I’m running: #!/bin/bash --login sed -i.bak “/gem [’”]growl_notify|autotest-fsevent|rb-appscript|rb-fsevent[’"].*, *$/ N; s/\n *//g; /gem [’"]growl_notify|autotest-fsevent|rb-appscript|rb-fsevent[’"]/ d" Gemfile bundle check --path=vendor/bundle ...
🌐
Team Treehouse
teamtreehouse.com › community › bundler-command-not-found
bundler: command not found (Example) | Treehouse Community
September 30, 2014 - Make sure that gem install rails -v '4.1.6' succeeds before bundling. run bundle exec spring binstub --all /Users/student/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/bundler-1.7.3/lib/bundler/runtime.rb:222: warning: Insecure world writable dir /Users/student in PATH, mode 040707 bundler: command not found: spring Install missing gem executables with bundle install
🌐
Rollbar
rollbar.com › home › how to fix ruby bundle install errors
How to Fix Ruby Bundle Install Errors | Rollbar
February 16, 2023 - RubyGems is a package manager for the Ruby programming language that is used to manage the installation and updating of Ruby libraries, also known as gems. If the version of RubyGems is outdated or missing, it may lead to errors when running bundle install. To fix this issue, we can update RubyGems to the latest version by running the command:
🌐
CircleCI
discuss.circleci.com › build environment
Bundle: command not found - Build Environment - CircleCI Discuss
May 3, 2016 - We have been getting several reports of the following issue: bash: line 1: bundle: command not found bundle install returned exit code 127 This is due to the fact that bundle is no longer installed as a default gem with RVM. https://github....
🌐
Reddit
reddit.com › r/rails › `bundle install` commands not working, error not clear
r/rails on Reddit: `bundle install` commands not working, error not clear
January 20, 2020 -

I did a brew install imagemagick for image manipulation, and went to update my gemfile with image_processing and mini_magic gems, and then did a bundle install and it errors out.

I tried brew update and brew upgrade, and they ran but still getting an error on bundle install, see the below:

Mac-Users-Apple-Computer:sample_app_v6 z$ bundle
Traceback (most recent call last):
  31: from /Users/z/.rbenv/versions/2.6.3/bin/bundle:23:in `<main>'
  30: from /Users/z/.rbenv/versions/2.6.3/bin/bundle:23:in `load'
  29: from /Users/z/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bundler-2.1.4/exe/bundle:34:in `<top (required)>'
  28: from /Users/z/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bundler-2.1.4/lib/bundler/friendly_errors.rb:123:in `with_friendly_errors'
  27: from /Users/z/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bundler-2.1.4/exe/bundle:46:in `block in <top (required)>'
  26: from /Users/z/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bundler-2.1.4/lib/bundler/cli.rb:24:in `start'
  25: from /Users/z/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bundler-2.1.4/lib/bundler/vendor/thor/lib/thor/base.rb:476:in `start'
  24: from /Users/z/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bundler-2.1.4/lib/bundler/cli.rb:30:in `dispatch'
  23: from /Users/z/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bundler-2.1.4/lib/bundler/vendor/thor/lib/thor.rb:399:in `dispatch'
  22: from /Users/z/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bundler-2.1.4/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
  21: from /Users/z/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bundler-2.1.4/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
  20: from /Users/z/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bundler-2.1.4/lib/bundler/cli.rb:255:in `install'
  19: from /Users/z/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bundler-2.1.4/lib/bundler/settings.rb:124:in `temporary'
  18: from /Users/z/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bundler-2.1.4/lib/bundler/cli.rb:256:in `block in install'
  17: from /Users/z/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bundler-2.1.4/lib/bundler/cli/install.rb:66:in `run'
  16: from /Users/z/.rbenv/versions/2.6.3/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
  15: from /Users/z/.rbenv/versions/2.6.3/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
  14: from /Users/z/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bundler-2.1.4/lib/bundler/installer.rb:4:in `<top (required)>'
  13: from /Users/z/.rbenv/versions/2.6.3/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
  12: from /Users/z/.rbenv/versions/2.6.3/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
  11: from /Users/z/.rbenv/versions/2.6.3/lib/ruby/2.6.0/rubygems/dependency_installer.rb:4:in `<top (required)>'
  10: from /Users/z/.rbenv/versions/2.6.3/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
  9: from /Users/z/.rbenv/versions/2.6.3/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
  8: from /Users/z/.rbenv/versions/2.6.3/lib/ruby/2.6.0/rubygems/package.rb:44:in `<top (required)>'
  7: from /Users/z/.rbenv/versions/2.6.3/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
  6: from /Users/z/.rbenv/versions/2.6.3/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
  5: from /Users/z/.rbenv/versions/2.6.3/lib/ruby/2.6.0/rubygems/security.rb:12:in `<top (required)>'
  4: from /Users/z/.rbenv/versions/2.6.3/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
  3: from /Users/z/.rbenv/versions/2.6.3/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
  2: from /Users/z/.rbenv/versions/2.6.3/lib/ruby/2.6.0/openssl.rb:13:in `<top (required)>'
  1: from /Users/z/.rbenv/versions/2.6.3/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/Users/z/.rbenv/versions/2.6.3/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require': dlopen(/Users/z/.rbenv/versions/2.6.3/lib/ruby/2.6.0/x86_64-darwin18/openssl.bundle, 9): Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib (LoadError)
  Referenced from: /Users/z/.rbenv/versions/2.6.3/lib/ruby/2.6.0/x86_64-darwin18/openssl.bundle
  Reason: image not found - /Users/z/.rbenv/versions/2.6.3/lib/ruby/2.6.0/x86_64-darwin18/openssl.bundle

I've done some google searching but it isn't clear


EDIT: I did see an SO answer saying to do the below (I'm on mac of course), brew remove openssl; brew install openssl, but get an error so am not sure if this is a safe route to try:

https://stackoverflow.com/questions/39051887/image-not-found-in-openssl-bundle-when-install-cocoapods-on-mac?noredirect=1&lq=1

Mac-Users-Apple-Computer:sample_app_v6 z$ brew remove openssl
Error: Refusing to uninstall /usr/local/Cellar/openssl@1.1/1.1.1d
because it is required by glib, httpie, imagemagick, krb5, libheif, mysql, postgresql, python, python@3.8, rbenv and shared-mime-info, which are currently installed.
You can override this and force removal with:
  brew uninstall --ignore-dependencies openssl

EDIT 2: RESOLVED

moomaka had me uninstall and reinstall my particular version of ruby and eventually all is well. Details in comments below.

🌐
Ubuntu
manpages.ubuntu.com › trusty › man(1)
Ubuntu Manpage: bundle-install - Install the dependencies specified in your Gemfile
This is because several other steps in bundle install must be performed as the current user: ... Of these three, the first two could theoretically be performed by chowning the resulting files to $SUDO_USER. The third, however, can only be performed by actually invoking the git command as the current user.
🌐
GitHub
github.com › Shippable › support › issues › 2486
bundle: command not found while running ruby build · Issue #2486 · Shippable/support
April 5, 2016 - I am getting bundle: command not found while running ruby build https://app.shippable.com/runs/56fd2325d1f1f60c002f4ac5 shippable.yml: language: ruby rvm: - 2.2.3 services: - postgres before_script...
Author   mspanc
🌐
Arch Linux Forums
bbs.archlinux.org › viewtopic.php
RubyGems / Newbie Corner / Arch Linux Forums
You are not logged in. ... hi,, i want install wpscan http://wpscan.org/ but after do sudo gem install bundler && bundle install --without test development show this :