5

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>'
Md. Sahidul Islam
  • 351
  • 1
  • 3
  • 14

4 Answers4

6

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

gem install rails
Md. Sahidul Islam
  • 351
  • 1
  • 3
  • 14
3

You can simply recheck if you have ran

rvm use 'your ruby version'

then run

  gem install bundler

that's it .

monsur
  • 601
  • 6
  • 18
  • this solution does not work for fixing "`require': cannot load such file -- bundler/setup (LoadError)" issue in my local configuration and I will continue search for it by doing research on this topic. – Oleksii Kyslytsyn Oct 01 '17 at 20:29
0

I think you don't have install bundler, I had almost precisely the same error, and was able to completely fix it simply by running:

gem install bundler
Kaushlendra Tomar
  • 1,410
  • 10
  • 16
0

works for me :

bundle exec rake rails:update:bin

or, in RAILS 5+

rails app:update:bin
Matrix
  • 3,458
  • 6
  • 40
  • 76