Cannot load such a file - bundler (LoadError) in linode

I want to deploy a rails application for linode cloud server. I installed ubuntu 14.04 LTS and installed ruby ​​2.3.0 on rvm and also installed the passenger with apache2. Then I cloned my application from a bitbucket and tried to bundle it, but I can't. It says so ....

/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>'
+4
source share
3 answers

In fact, I forgot to install the rails. After installing the rails, it is automatically resolved.

gem install rails
+4
source

You can simply double-check if you run

rvm use 'your ruby version'

then run

  gem install bundler

what he.

+3
source

I think you do not have the installation package, I had almost the same error, and I was able to completely fix it by doing:

gem install bundler
0
source

Source: https://habr.com/ru/post/1655024/


All Articles