# Ruby and log4r/ROMP

**URL:** <https://www.ruby-forum.com/t/ruby-and-log4r-romp/91237>\
**Category:** Ruby\
**Created:** [April 5, 2007, 10:01pm UTC](https://www.ruby-forum.com/t/ruby-and-log4r-romp/91237 "2007-04-05T22:01:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [April 5, 2007, 10:01pm UTC](https://www.ruby-forum.com/t/ruby-and-log4r-romp/91237/1 "2007-04-05T22:01:36Z")

</div>

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

ROMP is located at:  
[http://rubystuff.org/romp/](http://rubystuff.org/romp/)

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

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [April 6, 2007, 7:21pm UTC](https://www.ruby-forum.com/t/ruby-and-log4r-romp/91237/2 "2007-04-06T19:21:20Z")

</div>

On 4/5/07, removed\_email\_address@domain.invalid [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I am looking for help with the log4r/examples logserver.rb and logclient.rb
> 
> ROMP is located at:  
> [ROMP](http://rubystuff.org/romp/)
> 
> 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
