Anyone have any luck using libvirt library inside a ruby cgi script?<div><br></div><div>I am getting load errors (Internal Server Error) on failing to find _libvirt. The same script works fine run from the cmd shell. </div>
<div><br></div><div>My webserver is lighttpd.</div><div><br></div><div>Thanks,</div><div>Jon</div><div><br><div class="gmail_quote">On Tue, Oct 5, 2010 at 10:08 AM, Chris Lalancette <span dir="ltr"><<a href="mailto:clalance@redhat.com">clalance@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On 10/05/10 - 09:58:25AM, Jonathan Kelley wrote:<br>
> I guess I was expecting to find a ruby library making calls into the C<br>
> library like the Python libvirt.py that is generated.<br>
><br>
> I saw these files and thought I was missing something but I understand now<br>
> the difference between the Ruby and Python bindings.<br>
<br>
</div>Ah, no.  The way that this particular binding works is that it is all C code<br>
that bridges between the libvirt C api and the various rb_* routines to hook<br>
it into ruby.  There are other approaches possible, including something<br>
called FFI, but I haven't really looked at them.<br>
<br>
I've sent you the RDoc documentation for what is in git in a private email.<br>
Once I do the next release I will post this updated documentation to the<br>
website.<br>
<br>
--<br>
<font color="#888888">Chris Lalancette<br>
</font></blockquote></div><br></div>