Bundle: command not found
It’s a simple error and a simple fix I recently came across. I had originally installed Ruby with Brew (which is great) and later had installed and managed my ruby environments with rvm instead. When I switched over to RVM, and then later removed it. I forgot to relink all of the various dependencies for gems like bundle. The solution is to check your gem environment:
And look for your your gem executable directory is. Mine looks like:
RubyGems Environment: - RUBYGEMS VERSION: 2.0.0 - RUBY VERSION: 2.0.0 (2013-02-24 patchlevel 0) [x86_64-darwin12.2.0] - INSTALLATION DIRECTORY: /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/gems/2.0.0 - RUBY EXECUTABLE: /usr/local/Cellar/ruby/2.0.0-p0/bin/ruby - EXECUTABLE DIRECTORY: /usr/local/Cellar/ruby/2.0.0-p0/bin - RUBYGEMS PLATFORMS: - ruby - x86_64-darwin-12 - GEM PATHS: - /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/gems/2.0.0 - /Users/clay/.gem/ruby/2.0.0 - GEM CONFIGURATION: - :update_sources => true - :verbose => true - :backtrace => false - :bulk_threshold => 1000 - REMOTE SOURCES: - http://rubygems.org/
Then you need to add your EXECUTABLE DIRECTORY to your ~/.bash_profile path:
Hope it works for you! Comment with any questions or if you’re still stuck!