Ruby on rails Rails服务器未启动
在启动以前运行的rails应用程序的rails服务器时出现以下错误。Ruby on rails Rails服务器未启动,ruby-on-rails,ruby-on-rails-3,actionpack,Ruby On Rails,Ruby On Rails 3,Actionpack,在启动以前运行的rails应用程序的rails服务器时出现以下错误。 /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
/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>'
/home/ganesh/.rvm/gems/ruby-1.9.3-p327/gems/actionpack-3.2.5/lib/action\u dispatch.rb:35:在'require'中:无法加载此类文件--机架(装入器)
(ror)
from/home/ganesh/.rvm/gems/ruby-1.9.3-p327/gems/actionpack-3.2.5/lib/action\u dispatch.rb:35:in`'
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`'
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`'
来自脚本/rails:6:in'require'
来自脚本/rails:6:in`'
如何删除此错误。帮帮我。首先,您使用的服务也很重要 打开命令窗口并键入:
irb --simple-prompt
>> require 'rack'
=> true
>>
如果机架不存在,则会出现如下错误:
LoadError: no such file to load -- rack
您可以通过打开新的命令窗口并键入以下内容来安装机架:
gem install rack
同时检查,您是否尝试运行该命令
rails s
从应用程序文件夹中?首先,您使用的服务也很重要 打开命令窗口并键入:
irb --simple-prompt
>> require 'rack'
=> true
>>
如果机架不存在,则会出现如下错误:
LoadError: no such file to load -- rack
您可以通过打开新的命令窗口并键入以下内容来安装机架:
gem install rack
同时检查,您是否尝试运行该命令
rails s
从应用程序文件夹?是否安装了机架gem?bundle exec在这里可能没有帮助,这将是另一种错误。我不知道如何安装rack Gemos,您使用了什么服务?您是否安装了
机架
?gem文件中的gem“rack”。我的rvm版本是:rvm 1.17.3在添加“rack”gem后,您需要运行“bundle”。是否安装了rack gem?bundle exec在这里可能没有帮助,这将是另一种错误。我不知道如何安装rack Gemos,您使用了什么服务?您是否安装了机架
?gem文件中的gem'rack'。