0

I tried to setup a rails 5.0.0 app following this on ubuntu 16.04, when I start rails server for the first time, it crashed with the following message. I am new to ruby and do not know what is wrong

/var/lib/gems/2.3.0/gems/railties-5.0.0/lib/rails/commands/server.rb:8:in <module:Rails>': uninitialized constant Rack (NameError) Did you mean? Rake from /var/lib/gems/2.3.0/gems/railties-5.0.0/lib/rails/commands/server.rb:7:in <top (required)>' from /var/lib/gems/2.3.0/gems/railties-5.0.0/lib/rails/commands/commands_tasks.rb:138:in require' from /var/lib/gems/2.3.0/gems/railties-5.0.0/lib/rails/commands/commands_tasks.rb:138:in require_command!' from /var/lib/gems/2.3.0/gems/railties-5.0.0/lib/rails/commands/commands_tasks.rb:83:in server' from /var/lib/gems/2.3.0/gems/railties-5.0.0/lib/rails/commands/commands_tasks.rb:49:in run_command!' from /var/lib/gems/2.3.0/gems/railties-5.0.0/lib/rails/commands.rb:18:in <top (required)>' from bin/rails:4:in require' from bin/rails:4:in <main>'

and here is the first 10 lines of

/var/lib/gems/2.3.0/gems/railties-5.0.0/lib/rails/commands/server.rb

require 'fileutils'
require 'optparse'
require 'action_dispatch'
require 'rails'
require 'rails/dev_caching'

module Rails
  class Server < ::Rack::Server
    class Options
      DEFAULT_PID_PATH = File.expand_path("tmp/pids/server.pid").freeze
Mohit Kanada
  • 15,274
  • 8
  • 31
  • 41
Fallenwood
  • 9
  • 1
  • 2

1 Answers1

0

Could you please try these commands on your project path;

bundle update

gem update
utkuDAT
  • 334
  • 1
  • 3
  • 16