rhosync没有开始!

时间:2011-02-23 06:41:53

标签: rhodes rhomobile

我按照网站上的教程安装了rhodes,我还安装了rhosync 现在,当我尝试启动rhosync时,我得到错误

[12:06:07 PM 2011-02-23] Rhosync Server v2.1.1 started...
 <internal:lib/rubygems/custom_require>:29:in `require': no such file to load -- application (LoadError)
    from <internal:lib/rubygems/custom_require>:29:in `require'
    from config.ru:27:in `block in <main>'
    from /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.2.1/lib/rack/builder.rb:46:in `instance_eval'
    from /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.2.1/lib/rack/builder.rb:46:in `initialize'
    from config.ru:1:in `new'
    from config.ru:1:in `<main>'
    from /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.2.1/lib/rack/builder.rb:35:in `eval'
    from /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.2.1/lib/rack/builder.rb:35:in `parse_file'
    from /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.2.1/lib/rack/server.rb:162:in `app'
    from /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.2.1/lib/rack/server.rb:248:in `wrapped_app'
    from /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.2.1/lib/rack/server.rb:213:in `start'
    from /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.2.1/lib/rack/server.rb:100:in `start'
    from /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.2.1/bin/rackup:4:in `<top (required)>'
from /usr/local/bin/rackup:19:in `load'
from /usr/local/bin/rackup:19:in `<main>'

[EOF - dtach终止]

这是一个路径问题吗??如果是,那么如何设置正确的路径???

4 个答案:

答案 0 :(得分:2)

如果您使用ruby 1.9.1+,则必须更改config.ru

将'require'application'“替换为require'./application' 因为“$:不包括当前的指令。”

http://www.ruby-lang.org/en/news/2010/08/18/ruby-1-9.2-released/

答案 1 :(得分:0)

请检查以下事项:

  • 确保您已开始使用redis。
  • 您与应用程序位于同一目录中

干杯 Abhishek Nalwaya

答案 2 :(得分:0)

尝试切换到Ruby版本1.8.7

答案 3 :(得分:0)

最好的选择是使用msi安装程序(download page)在windows中安装rhosync,然后启动redis。