I\'m executing the following script:
gem install rdoc --no-document
gem install bundle
bundle
output:
+ gem install rdoc --
gem install bundler -v '< 2.0'
I saw a similar error message for the travis bundle after upgrading mac os to Catalina.
Traceback (most recent call last):
2: from /usr/local/bin/travis:22:in `<main>'
1: from /usr/local/Cellar/ruby/2.6.5/lib/ruby/2.6.0/rubygems.rb:263:in `bin_path'
/usr/local/Cellar/ruby/2.6.5/lib/ruby/2.6.0/rubygems.rb:284:in `find_spec_for_exe': can't find gem travis (>= 0.a) with executable travis (Gem::GemNotFoundException)
To resolve the issue, I reinstalled travis from source.
brew remove travis;
brew install -s travis
I faced this same issue. The issue is caused by the fact that RubyGems cannot find an executable bundle for the bundler gem on the system
To fix it, first run
gem install bundler
if you don't have bundler gem installed locally, then run
gem update --system
That's all
I hope this helps