Ruby on Rails - 使用 LogServer 使用 ROMP 在 log4r 中进行远程日志记录
我是 Ruby on Rails (RoR) 应用程序的新手。我正在尝试设置 LogServer 并尝试运行 github 上提供的示例: https://github.com/colbygk/log4r/blob/master/examples/logserver.rb 和 https://github.com/colbygk/log4r/blob/master/examples/logclient .rb。
但我知道设置 LogServer 需要 ROMP,所以我下载了 ROMP tarball 并将其扩展在这里:/usr/lib/ruby/1.8
但是当我尝试在终端中运行 logserver.rb 程序时,我得到:
“/usr/lib/ruby/1.8/log4r/configurator.rb:204:in new': 不支持 LogServer。需要 ROMP (运行时错误) /usr/lib/ruby/1.8/log4r/configurator.rb:204:in
decode_logserver' ...."
关于如何在我的机器上正确安装 ROMP 的任何想法吗? 我使用的是Ubuntu 10.04、ruby1.8和rails 2.2.3。
提前致谢 ........
I am a complete newbie in working with a Ruby on Rails (RoR) application. I am trying to set up a LogServer and tried running the example available on github : https://github.com/colbygk/log4r/blob/master/examples/logserver.rb and the https://github.com/colbygk/log4r/blob/master/examples/logclient.rb.
But I knew that ROMP was required for setting up a LogServer, so I downloaded the ROMP tarball and expanded it here : /usr/lib/ruby/1.8
But still when I tried running the logserver.rb program in the terminal, I get :
"/usr/lib/ruby/1.8/log4r/configurator.rb:204:in new': LogServer not supported. ROMP is required (RuntimeError) from /usr/lib/ruby/1.8/log4r/configurator.rb:204:in
decode_logserver' ...."
Any idea on how to properly install ROMP on my machine???
I am using Ubuntu 10.04, ruby1.8 and rails 2.2.3.
Thanks in Advance ........
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
通过此链接:http://www.ruby-forum.com/topic/103958
下载并解压 ROMP tarball 后...
这将编译 ROMP C 扩展。现在您需要将其安装到您的 ruby 目录中。在我的 Windows/Cygwin 混蛋盒子上,可以在...中找到
ROMP .rb 文件直接进入此目录,编译后的 .so 进入该
目录。
请注意,我自己没有尝试过这种安装,但我希望
你就明白了
From this link: http://www.ruby-forum.com/topic/103958
After downloading and extracting the ROMP tarball ...
This will compile the ROMP C extension. Now you need to install it into your ruby directory. On my Windows/Cygwin bastard box this is found in ...
The ROMP .rb files go directly into this directory, and the compiled .so goes into the
directory.
Please note that I have not tried this installation myself, but I hope
you get the general idea