Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

bundle command not found in linux debian

Tags:

When i enter bundle install I get the error '-bash: bundle: command not found'.

How do I find whether bundler is installed ?

gem environment returns the following

RubyGems Environment:   - RUBYGEMS VERSION: 1.2.0   - RUBY VERSION: 1.8.7 (2008-08-11 patchlevel 72) [x86_64-linux]   - INSTALLATION DIRECTORY: /var/lib/gems/1.8   - RUBY EXECUTABLE: /usr/bin/ruby1.8   - EXECUTABLE DIRECTORY: /var/lib/gems/1.8/bin   - RUBYGEMS PLATFORMS:     - ruby     - x86_64-linux   - GEM PATHS:      - /var/lib/gems/1.8   - GEM CONFIGURATION:      - :update_sources => true      - :verbose => true      - :benchmark => false      - :backtrace => false      - :bulk_threshold => 1000   - REMOTE SOURCES:      - http://gems.rubyforge.org/ 

Can somebody explains me how to get the bundler command working ? I am a novice to this subject..

like image 844
Paba Avatar asked Jul 13 '11 07:07

Paba


People also ask

Why is the bundle command not working?

When you get the rbenv: bundle: command not found error it is most likely the case that you have installed a new Ruby version and you are trying to run a bundle command inside an existing project directory. For every new Ruby version you install, you also need to install the Bundler gem.

What is bundle command Linux?

Bundler manages an application's dependencies through its entire life across many machines systematically and repeatably. See the bundler website for information on getting started, and Gemfile(5) for more information on the Gemfile format.

What does bundle command do?

The bundle exec command ensures that executable programs installed by Gems don't interfere with your app's requirements. For instance, if your app needs a specific version of rake but the default version of rake differs, bundle exec ensures that you can still run the specific rake version compatible with your app.


1 Answers

gem install bundler 

or probably, since there is an executable

sudo gem install bundler 
like image 107
Ray Baxter Avatar answered Sep 17 '22 15:09

Ray Baxter