Ubuntu – /usr/bin/ruby1.9.1: No such file or directory — /usr/share/rubygems-integration/1.9.1/gems/bundler-1.3.5/bin/bundle (LoadError)

ruby

After installing ruby-rails-4.0 (4.0.2+dfsg-2) attempting to generate a new web application fails with the following error:

$ rails new hello
….
run bundle install
/usr/bin/ruby1.9.1: No such file or directory — /usr/share/rubygems-integration/1.9.1/gems/bundler-1.3.5/bin/bundle (LoadError)

Best Answer

This will fix the issue:

sudo gem install bundler 

You'll most likely run into other gem dependencies:

sudo apt-get install libsqlite3-dev
sudo gem install sqlite3 -v '1.3.10'

come to mind.

Related Question