Package libvirt was not found in the pkg-config search path
时间: 2024-03-10 17:50:58 浏览: 199
This error message indicates that the pkg-config tool was unable to find the libvirt package. To resolve this issue, you may need to install the libvirt development package on your system.
On Ubuntu, you can try running the following command to install the package:
```
sudo apt-get install libvirt-dev
```
On CentOS or Red Hat Enterprise Linux, you can try running the following command:
```
sudo yum install libvirt-devel
```
After installing the package, try running the pkg-config command again to see if the issue has been resolved. If not, you may need to update your PKG_CONFIG_PATH environment variable to include the path to the libvirt.pc file.
阅读全文