Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The program 'bundle' is currently not installed

while i was trying to run this code "bundle install --without production" I am getting an error like "The program 'bundle' is currently not installed. You can install it by typing: sudo apt-get install ruby-bundler " I have installed bundle already but still getting this error.

This problem occurred while i was learning from Harlt's.."Updating Gemfile" at Heroku setup section

like image 494
Abhinay Avatar asked Dec 11 '22 11:12

Abhinay


2 Answers

First Set up the PATH variable for the installed ruby executable(Suppose the installed ruby is ruby-2.0.0-p451):

PATH=$PATH:$HOME/.rvm/gems/ruby-2.0.0-p451/bin

and then run,

gem install bundler (if bundler is not installed)

and lastly run,

rvm use ruby-2.0.0-p451 --default (--default is optional).

There you go. Now you would be able to run bundle command with out any issues.

Hope it helps :)

like image 63
Rajesh Omanakuttan Avatar answered Jan 03 '23 01:01

Rajesh Omanakuttan


For those, who uses rbenv receipt is:

gem install bundler
rbenv rehash
bundle
like image 35
Daniel Garmoshka Avatar answered Jan 03 '23 00:01

Daniel Garmoshka