Question

I get following error while start rails server of previously running rails application.

/home/ganesh/.rvm/gems/ruby-1.9.3-p327/gems/actionpack-3.2.5/lib/action_dispatch.rb:35:in `require': cannot load such file -- rack (LoadEr
ror)
        from /home/ganesh/.rvm/gems/ruby-1.9.3-p327/gems/actionpack-3.2.5/lib/action_dispatch.rb:35:in `<top (required)>'
        from /home/ganesh/.rvm/gems/ruby-1.9.3-p327/gems/railties-3.2.5/lib/rails/commands/server.rb:3:in `require'
        from /home/ganesh/.rvm/gems/ruby-1.9.3-p327/gems/railties-3.2.5/lib/rails/commands/server.rb:3:in `<top (required)>'
        from /home/ganesh/.rvm/gems/ruby-1.9.3-p327/gems/railties-3.2.5/lib/rails/commands.rb:49:in `require'
        from /home/ganesh/.rvm/gems/ruby-1.9.3-p327/gems/railties-3.2.5/lib/rails/commands.rb:49:in `<top (required)>'
        from script/rails:6:in `require'
        from script/rails:6:in `<main>'

How to remove this error. Help me.

No correct solution

OTHER TIPS

First, What service you are using is also important.

Open a command window and type:

irb --simple-prompt
>> require 'rack'
=> true
>>

If rack’s not there you will get an error like:

LoadError: no such file to load -- rack

You can install rack by opening a new command window and typing:

gem install rack

Also check, Did you try to run the command

rails s

from your application folder ?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top