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

Md. Sahidul Islam picture Md. Sahidul Islam · Sep 19, 2016 · Viewed 9.2k times · Source

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>'

Answer

Md. Sahidul Islam picture Md. Sahidul Islam · Sep 19, 2016

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

gem install rails