Libvirt was installed with "dnf install". For libvirt-go - $ go get github.com/libvirt/libvirt-go. As a result: enter image description here
How I can change PKG_CONFIG_PATH? Or how to install libvirt-go right?
Libvirt was installed with "dnf install". For libvirt-go - $ go get github.com/libvirt/libvirt-go. As a result: enter image description here
How I can change PKG_CONFIG_PATH? Or how to install libvirt-go right?
You need to install the libvirt development package, eg libvirt-devel on Fedora/RHEL/Centos, or libvirt-dev on Debian/Ubuntu.
The libvirt-go build process will just query 'pkg-config' to find out where it is installed, so if you did have it installed in a non-standard location (eg /opt/libvirt), then you would do 'export PKG_CONFIG_PATH=/opt/libvirt/lib/pkgconfig' and then libvirt-go would find that.