0

For a Rails app, I tried running $ bundle install. But, even after I ran $ gem install bundler, I got the same message.

this is what happened:

Run `bundle install` to install missing gems.
Davids-iMac-2:213calendar davidburton$ bundle install
ERROR: Gem bundler is not installed, run `gem install bundler` first.
Davids-iMac-2:213calendar davidburton$ gem install bundler
Successfully installed bundler-1.3.5
1 gem installed
Installing ri documentation for bundler-1.3.5...
Installing RDoc documentation for bundler-1.3.5...
Davids-iMac-2:213calendar davidburton$ bundle install
ERROR: Gem bundler is not installed, run `gem install bundler` first.

UPDATE1

rvm list

rvm rubies

   ruby-1.9.2-p290 [ x86_64 ]
=* ruby-1.9.3-p374 [ x86_64 ]

# => - current
# =* - current && default
#  * - default
Reddirt
  • 5,913
  • 9
  • 48
  • 126

1 Answers1

0

Check your home directory for a ~/.bash_profile file.

If it exists, and you don't remember creating it, copy its contents to ~/.bashrc and remove the .bash_profile file completely.

By default, rvm appends the commands for updating path with rvm function in .bash_profile after rvm installation. Ubuntu, at a time only uses .bash_profile if it is present, or .bashrc when .bash_profile is absent. This results in PATH not being correctly set, and the gem, even though installed, is not detected since it is not on your path.

Anshul Goyal
  • 73,278
  • 37
  • 149
  • 186