rhosync 未启动!

发布于 2024-10-18 14:29:36 字数 1438 浏览 3 评论 0原文

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

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

I installed rhodes as per the tutorial on the website and i also installed rhosync
Now when i try to start rhosync then i get error

[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 terminating]

Is this a Path Issue??...If it is then how to set correct path???

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

殤城〤 2024-10-25 14:29:36

如果您使用的是 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/

If you are using ruby 1.9.1+ then you have to change your config.ru

replace "require 'application'" with require './application'
because "$: doesn't include the current direcotry."

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

望她远 2024-10-25 14:29:36

尝试切换到 Ruby 版本 1.8.7

Try switching to Ruby version 1.8.7

牵强ㄟ 2024-10-25 14:29:36

请检查以下事项:

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

干杯
阿布舍克·纳尔瓦亚

Please check the following things :

  • make sure you have started redis.
  • you are in same directory as your application

Cheers
Abhishek Nalwaya

故事还在继续 2024-10-25 14:29:36

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

Best option is to install rhosync in windows with the msi installer (download page), then start the redis.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文