Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

cannot load such file -- bundler (LoadError) in linode

I want to deploy rails app to linode cloud server. I installed ubuntu 14.04 LTS and installed ruby 2.3.0 by rvm and also installed passenger with apache2. Then I cloned my app from bitbucket and try to bundle on it but i can't. It says like this....

/usr/local/rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- bundler (LoadError)
from /usr/local/rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/bin/bundle:7:in `<main>'
like image 780
Md. Sahidul Islam Avatar asked Sep 19 '16 05:09

Md. Sahidul Islam


2 Answers

Actually I forgot to install rails. After installing rails it is resolved automatically.

gem install rails
like image 109
Md. Sahidul Islam Avatar answered Oct 13 '22 10:10

Md. Sahidul Islam


You can simply recheck if you have ran

rvm use 'your ruby version'

then run

  gem install bundler

that's it .

like image 35
monsur Avatar answered Oct 13 '22 10:10

monsur