0

宝石安装乘客 # 版本 3.0.2

运行命令'passenger start'然后我得到了错误:

c:/Ruby187/lib/ruby/gems/1.8/gems/passenger-3.0.2/lib/phusion_passenger/plugin.r
b:37:in `load': undefined method `dir' for nil:NilClass (NoMethodError)
        from c:/Ruby187/lib/ruby/gems/1.8/gems/passenger-3.0.2/lib/phusion_passe
nger/plugin.rb:34:in `each'
        from c:/Ruby187/lib/ruby/gems/1.8/gems/passenger-3.0.2/lib/phusion_passe
nger/plugin.rb:34:in `load'
        from c:/Ruby187/lib/ruby/gems/1.8/gems/passenger-3.0.2/lib/phusion_passe
nger/plugin.rb:72:in `initialize'
        from c:/Ruby187/lib/ruby/gems/1.8/gems/passenger-3.0.2/lib/phusion_passe
nger/standalone/start_command.rb:52:in `new'
        from c:/Ruby187/lib/ruby/gems/1.8/gems/passenger-3.0.2/lib/phusion_passe
nger/standalone/start_command.rb:52:in `initialize'
        from c:/Ruby187/lib/ruby/gems/1.8/gems/passenger-3.0.2/lib/phusion_passe
nger/standalone/main.rb:93:in `new'
        from c:/Ruby187/lib/ruby/gems/1.8/gems/passenger-3.0.2/lib/phusion_passe
nger/standalone/main.rb:93:in `run_command'
        from c:/Ruby187/lib/ruby/gems/1.8/gems/passenger-3.0.2/lib/phusion_passe
nger/standalone/main.rb:48:in `each_command'
        from c:/Ruby187/lib/ruby/gems/1.8/gems/passenger-3.0.2/lib/phusion_passe
nger/standalone/main.rb:43:in `each'
        from c:/Ruby187/lib/ruby/gems/1.8/gems/passenger-3.0.2/lib/phusion_passe
nger/standalone/main.rb:43:in `each_command'
        from c:/Ruby187/lib/ruby/gems/1.8/gems/passenger-3.0.2/lib/phusion_passe
nger/standalone/main.rb:91:in `run_command'
        from c:/Ruby187/lib/ruby/gems/1.8/gems/passenger-3.0.2/lib/phusion_passe
nger/standalone/main.rb:62:in `run!'
        from c:/Ruby187/lib/ruby/gems/1.8/gems/passenger-3.0.2/lib/phusion_passe
nger/standalone/main.rb:39:in `run!'
        from c:/Ruby187/lib/ruby/gems/1.8/gems/passenger-3.0.2/bin/passenger:32
        from c:/Ruby187/bin/passenger:19:in `load'
        from c:/Ruby187/bin/passenger:19

任何想法将不胜感激。

4

1 回答 1

2

我在您使用 Windows 的路径中看到。Windows 平台不支持乘客。如果您告诉我更多有关目的(Windows 上的生产服务器吗?/您是否尝试运行它以进行开发?)我也许可以给您一些替代方案。

于 2011-02-22T15:43:33.777 回答