Reputation: 1622
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?
Upvotes: 0
Views: 1723
Reputation: 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.
Upvotes: 0
Reputation: 11
You need to check your gem list
and see if bundler is installed, then bundle install (--without production)
Upvotes: 1