rgbkrk / libvirt-go

[DEPRECATED] Go bindings for libvirt
https://github.com/libvirt/libvirt-go
MIT License
166 stars 50 forks source link

src/github.com/sandlbn/libvirt-go/cfuncs.go:6:10: fatal error: libvirt/libvirt.h: No such file or directory #129

Closed Jerryhax closed 6 years ago

Jerryhax commented 6 years ago

I get this in my console when I run a go project which import shis libvirt-go.

github.com/sandlbn/libvirt-go src/github.com/sandlbn/libvirt-go/cfuncs.go:6:10: fatal error: libvirt/libvirt.h: No such file or directory

include <libvirt/libvirt.h>

      ^~~~~~~~~~~~~~~~~~~

compilation terminated.

what‘s wrong?what should i do?

berrange commented 6 years ago

FYI, this repo is deprecated now in favour of using https://github.com/libvirt/libvirt-go which took this initial work upto 100% API coverage.

That said, your error message is caused by missing the native libvirt development header files. You need to install libvirt-devel / libvirt-dev packages.

Jerryhax commented 6 years ago

thanks reply,it works after I install libvirt-devel packages.