[libvirt-users] Ruby-libvirt and openAuth

Jonathan Kelley jkelley at vm-labs.com
Wed Oct 6 17:44:43 UTC 2010


Anyone have any luck using libvirt library inside a ruby cgi script?

I am getting load errors (Internal Server Error) on failing to find
_libvirt. The same script works fine run from the cmd shell.

My webserver is lighttpd.

Thanks,
Jon

On Tue, Oct 5, 2010 at 10:08 AM, Chris Lalancette <clalance at redhat.com>wrote:

> On 10/05/10 - 09:58:25AM, Jonathan Kelley wrote:
> > I guess I was expecting to find a ruby library making calls into the C
> > library like the Python libvirt.py that is generated.
> >
> > I saw these files and thought I was missing something but I understand
> now
> > the difference between the Ruby and Python bindings.
>
> Ah, no.  The way that this particular binding works is that it is all C
> code
> that bridges between the libvirt C api and the various rb_* routines to
> hook
> it into ruby.  There are other approaches possible, including something
> called FFI, but I haven't really looked at them.
>
> I've sent you the RDoc documentation for what is in git in a private email.
> Once I do the next release I will post this updated documentation to the
> website.
>
> --
> Chris Lalancette
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20101006/ba74ec19/attachment.htm>


More information about the libvirt-users mailing list