linux下更换redmine的web server ,使用mongrel碰到的问题.
redmine版本2.2.0,使用rubyscript/railsserverwebrick-eproduction能顺利跑起来。更换使用mongrel执行命令:gemi...
redmine版本2.2.0,使用ruby script/rails server webrick -e production能顺利跑起来。
更换使用mongrel 执行命令:gem install mongrel --pre
安装成功
执行命令
ruby script/rails server mongrel -e production
报错:
Exiting
/usr/local/ruby/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/handler/mongrel.rb:1:in `require': cannot load such file -- mongrel (LoadError)
from /usr/local/ruby/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/handler/mongrel.rb:1:in `<top (required)>'
from /usr/local/ruby/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/handler.rb:20:in `const_get'
from /usr/local/ruby/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/handler.rb:20:in `block in get'
from /usr/local/ruby/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/handler.rb:20:in `each'
from /usr/local/ruby/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/handler.rb:20:in `inject'
from /usr/local/ruby/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/handler.rb:20:in `get'
from /usr/local/ruby/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/server.rb:269:in `server'
from /usr/local/ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.9/lib/rails/commands/server.rb:59:in `start'
from /usr/local/ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.9/lib/rails/commands.rb:55:in `block in <top (required)>'
from /usr/local/ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.9/lib/rails/commands.rb:50:in `tap'
from /usr/local/ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.9/lib/rails/commands.rb:50:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
求大神路过解答 展开
更换使用mongrel 执行命令:gem install mongrel --pre
安装成功
执行命令
ruby script/rails server mongrel -e production
报错:
Exiting
/usr/local/ruby/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/handler/mongrel.rb:1:in `require': cannot load such file -- mongrel (LoadError)
from /usr/local/ruby/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/handler/mongrel.rb:1:in `<top (required)>'
from /usr/local/ruby/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/handler.rb:20:in `const_get'
from /usr/local/ruby/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/handler.rb:20:in `block in get'
from /usr/local/ruby/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/handler.rb:20:in `each'
from /usr/local/ruby/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/handler.rb:20:in `inject'
from /usr/local/ruby/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/handler.rb:20:in `get'
from /usr/local/ruby/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/server.rb:269:in `server'
from /usr/local/ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.9/lib/rails/commands/server.rb:59:in `start'
from /usr/local/ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.9/lib/rails/commands.rb:55:in `block in <top (required)>'
from /usr/local/ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.9/lib/rails/commands.rb:50:in `tap'
from /usr/local/ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.9/lib/rails/commands.rb:50:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
求大神路过解答 展开
2个回答
展开全部
我也遇到了这个问题。可以用下面方法解决
redmine 文件夹下找到gemfile 文件,打开加入下面一句
gem 'mongrel','~> 1.2.0.pre2'
redmine 文件夹下找到gemfile 文件,打开加入下面一句
gem 'mongrel','~> 1.2.0.pre2'
追问
谢谢,加了后,果然解决问题。。。再次感谢 ~~
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询