rhosync 未启动!
我按照网站上的教程安装了 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
如果您使用的是 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/
尝试切换到 Ruby 版本 1.8.7
Try switching to Ruby version 1.8.7
请检查以下事项:
干杯
阿布舍克·纳尔瓦亚
Please check the following things :
Cheers
Abhishek Nalwaya
最好的选择是使用 msi 安装程序在 Windows 中安装 rhosync(下载页面),然后启动 redis 。
Best option is to install rhosync in windows with the msi installer (download page), then start the redis.