2017-08-10 113 views
1

以下說明:https://libvirt.org/compiling.html無法編譯新的Ubuntu 16 libvirt的頁面上方安裝

收到以下錯誤運行./configure

感謝

checking for LIBNL... yes checking for LIBNL_ROUTE3... no configure: error: Package requirements (libnl-route-3.0) were not met:

No package 'libnl-route-3.0' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix.

Alternatively, you may set the environment variables LIBNL_ROUTE3_CFLAGS and LIBNL_ROUTE3_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.

然後我嘗試後安裝:

[email protected]:~/libvirt-3.5.0$ sudo apt-get install libnl-route-3.0 Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package libnl-route-3.0 E: Couldn't find any package by glob 'libnl-route-3.0' E: Couldn't find any package by regex 'libnl-route-3.0'

然後我試試這個:

[email protected]:~/libvirt-3.5.0$ sudo apt-get install libnl-3-dev

bnl-3-dev Reading package lists... Done Building dependency tree Reading state information... Done libnl-3-dev is already the newest version (3.2.27-1ubuntu0.16.04.1). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

+0

我運行完全相同的錯誤,您是否設法在Ubuntu 16.04上安裝最新的libvirt版本? –

回答

0

嘗試做sudo apt-get install libnl-route-3-dev 它將工作。