2

我按照网站上的教程安装了 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

4 回答 4

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/

于 2011-04-29T08:40:18.590 回答
0

请检查以下事项:

  • 确保你已经启动了 redis。
  • 您与您的应用程序位于同一目录中

干杯阿布舍克·纳尔瓦亚

于 2011-03-11T03:43:53.377 回答
0

尝试切换到 Ruby 版本 1.8.7

于 2011-04-15T17:52:35.077 回答
0

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

于 2012-10-26T05:28:44.443 回答