doutuo6689
2017-08-01 15:35
浏览 308
已采纳

如何安装libvirt-go? (pkg配置)

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?

图片转代码服务由CSDN问答提供 功能建议

Libvirt是通过“ dnf install”安装的。 对于libvirt-go-$,请访问github.com/libvirt/libvirt-go。 结果是: 在此处输入图片描述

如何更改PKG_CONFIG_PATH? 还是如何正确安装libvirt-go?

  • 写回答
  • 好问题 提建议
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • dqqyp90576 2017-08-02 09:10
    已采纳

    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.

    已采纳该答案
    评论
    解决 无用
    打赏 举报

相关推荐 更多相似问题