[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

ruby and log4r/ROMP

kbombard@erols.com

4/5/2007 8:01:00 PM

I am looking for help with the log4r/examples logserver.rb and logclient.rb

ROMP is located at:
http://rubystuff...

There is no information on how to install or use it. Can someone help me
with this?

When I run the logserver.rb I get the following:

C:\ruby\bin>ruby.exe c:\ruby\logSvr.rb
DEBUG log4r: Added outputter 'stdout' to 'log4r'
C:/ruby/lib/ruby/gems/1.8/gems/log4r-1.0.5/src/log4r/configurator.rb:204:in
`new': LogServer not supported. ROMP is required (RuntimeError)
from
C:/ruby/lib/ruby/gems/1.8/gems/log4r-1.0.5/src/log4r/configurator.rb:204:in
`decode_logserver'
from
C:/ruby/lib/ruby/gems/1.8/gems/log4r-1.0.5/src/log4r/configurator.rb:89:in
`decode_xml'
from C:/ruby/lib/ruby/1.8/rexml/element.rb:934:in `each'
from C:/ruby/lib/ruby/1.8/rexml/xpath.rb:53:in `each'
from C:/ruby/lib/ruby/1.8/rexml/element.rb:934:in `each'
from
C:/ruby/lib/ruby/gems/1.8/gems/log4r-1.0.5/src/log4r/configurator.rb:89:in
`decode_xml'
from
C:/ruby/lib/ruby/gems/1.8/gems/log4r-1.0.5/src/log4r/configurator.rb:82:in
`actual_load'
from
C:/ruby/lib/ruby/gems/1.8/gems/log4r-1.0.5/src/log4r/configurator.rb:62:in
`load_xml_string'
from c:/ruby/logSvr.rb:15



--------------------------------------------------------------------
myhosting.com - Premium Microsoft® Windows® and Linux web and application
hosting - http://link.myhosting.com...



1 Answer

Tim Pease

4/6/2007 5:21:00 PM

0

On 4/5/07, kbombard@erols.com <kbombard@erols.com> wrote:
> I am looking for help with the log4r/examples logserver.rb and logclient.rb
>
> ROMP is located at:
> http://rubystuff...
>
> There is no information on how to install or use it. Can someone help me
> with this?
>

After downloading and extracting the ROMP tarball ...

> cd romp-0.2
> ruby extconf.rb
> make

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 ...

/lib/ruby/site_ruby/1.8

The ROMP .rb files go directly into this directory, and the compiled
so goes into the

/lib/ruby/site_ruby/1.8/i386-cygwin

directory.

Please note that I have not tried this installation myself, but I hope
you get the general idea. Anyone else care to chime in on these
rudimentary directions?

Blessings,
TwP