Ruby syslog extension not working

H

hauserns

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?
 
K

Kent Sibilev

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,962
Messages
2,570,134
Members
46,692
Latest member
JenniferTi

Latest Threads

Top