Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"gem install bundler --version=0.8.1" doesn't install the bundle executable

When trying to install Bundler 0.8.1 on Ubuntu machine, it install fine but the executable "bundle" is no where to be seen. Other gems install successfully, including their executables.

using: gem install bundler --version=0.8.1

RubyGems Environment:
- RUBYGEMS VERSION: 1.3.7
- RUBY VERSION: 1.8.7 (2009-06-12 patchlevel 174) [i486-linux]
- INSTALLATION DIRECTORY: /home/ahammad/gems
- RUBY EXECUTABLE: /usr/bin/ruby1.8
- EXECUTABLE DIRECTORY: /home/ahammad/gems/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86-linux
- GEM PATHS:
 - /home/ahammad/gems
- GEM CONFIGURATION:
 - :update_sources => true
 - :verbose => true
 - :benchmark => false
 - :backtrace => false
 - :bulk_threshold => 1000
 - :sources => ["http://gems.rubyforge.org/", "http://gem1.gilt.com"]
- REMOTE SOURCES:
 - http://gems.rubyforge.org/

Path /home/ahammad/gems/bin has been added to PATH, the problem is there is no bundle exe.

Any ideas?

like image 443
afhammad Avatar asked Aug 17 '10 08:08

afhammad


People also ask

How do I fix a run bundle to install missing gems?

In the invoked popup, start typing bundler, select bundle install and press Enter . Select Tools | Bundler | Install from the main menu. Open the Gemfile, place the caret at any highlighted gem missing in the project SDK and press Alt+Enter . Select Install missing gems using 'bundler' and press Enter .

How do I install a specific version of a gem?

Use `gem install -v` You may already be familiar with gem install , but if you add the -v flag, you can specify the version of the gem to install. Using -v you can specify an exact version or use version comparators.


1 Answers

Maybe that specific version of bundler wasn't available for installation, so to choose specific available range of versions which could be available, try:

gem install bundler --version '<= 0.10.6'

Or simple uninstall the previous bundler and install it again. Then check by gem list bundler or bundler _0.9.26_ -v (where 0.9.26 is version of your older gem).

Check also the permissions of your local gem folders.

Learn more: How to upgrade/downgrade Rubygems at rubyforge

like image 146
kenorb Avatar answered Oct 11 '22 22:10

kenorb