libnl-3.2.8升级到libnl-3.9.0
configure: error: libnl-genl-3.0 package not found or too old. Is the development package and pkg-config (/usr/bin/pkg-config) installed? Must be version 3.4.0 or newer for DCO
1.系统环境
Centos7.9
2.下载libnl
下载libnl-3.9.0:https://github.com/thom311/libnl/releases
3.编译安装
tar -zxvf libnl-3.9.0.tar.gz
cd libnl-3.9.0
./configure --prefix=/usr/local/libnl3 --sysconfdir=/etc --disable-static
make && make install
# 定义库位置
echo /usr/local/libnl3/lib > /etc/ld.so.conf.d/libnl3.conf
ldconfig
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/libnl3/lib/pkgconfig"
# 查看版本
pkg-config --modversion libnl-genl-3.0
# 显示3.9.0表示安装成功