[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

Ruby syslog extension not working

hauserns

8/25/2006 5:59:00 PM

Should the syslog extenstion be automatically installed if you use the
one-click installer? Whenever I require 'syslog' i get the following
error:


C:\ruby\src\ruby-1.8.4_2006-04-14\ext\syslog>ruby test.rb
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require': no such file to load -- syslog (LoadError)
from
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require'
from test.rb:13

I tried to run


C:\ruby\src\ruby-1.8.4_2006-04-14\ext\syslog>ruby extconf.rb

but got

checking for syslog.h... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.

How should I go about installing the syslog extension?

1 Answer

Kent Sibilev

8/25/2006 6:20:00 PM

0

On 8/25/06, hauserns@gmail.com <hauserns@gmail.com> wrote:
> Should the syslog extenstion be automatically installed if you use the
> one-click installer? Whenever I require 'syslog' i get the following
> error:
>
>
> C:\ruby\src\ruby-1.8.4_2006-04-14\ext\syslog>ruby test.rb
> c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
> `gem_original_require': no such file to load -- syslog (LoadError)
> from
> c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
> `require'
> from test.rb:13
>
> I tried to run
>
>
> C:\ruby\src\ruby-1.8.4_2006-04-14\ext\syslog>ruby extconf.rb
>
> but got
>
> checking for syslog.h... no
> *** extconf.rb failed ***
> Could not create Makefile due to some reason, probably lack of
> necessary libraries and/or headers. Check the mkmf.log file for more
> details. You may need configuration options.
>
> How should I go about installing the syslog extension?
>

I'd love to have syslog facility available on Windows, but Microsoft
has their own ideas about system logging. I remember there was an
extension that provide you access to windows event manager API.

--
Kent
---
http://www.dat...