0

After install ruby 2.5.1 using RVM (lasted), when i run rails s, i got error bellow:

Traceback (most recent call last):
    5: from bin/rails:3:in `<main>'
    4: from bin/rails:3:in `require_relative'
    3: from /Users/thiensubs/Documents/super-control/config/boot.rb:3:in `<top (required)>'
    2: from /Users/thiensubs/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:39:in `require'
    1: from /Users/thiensubs/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:135:in `rescue in require'
/Users/thiensubs/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:135:in `require': cannot load such file -- bundler/setup (LoadError)

Any body can help me?

ThienSuBS
  • 1,574
  • 18
  • 26

3 Answers3

1

You need to check your gem list and see if bundler is installed, then bundle install (--without production)

Showner
  • 11
  • 2
1

Check that you don't have a .ruby-version file with just "2.5" in it. Switching mine to "2.5.1" fixed this.

0

Worked for me

gem update --system
tuwilof
  • 351
  • 3
  • 6