当前位置:   article > 正文

iproute2编译安装_iproute2安装

iproute2安装

1、下载iproute2

  1. cd /usr/local/src/
  2. git clone https://github.com/shemminger/iproute2.git

稳定版本库

git://git.kernel.org/pub/scm/network/iproute2/iproute2.git

2、下载编译安装libmnl

  1. git clone git://git.netfilter.org/libmnl
  2. cd libmnl/
  3. sh autogen.sh
  4. ./configure
  5. make
  6. make install

3、编译安装iproute2

pkg-config默认搜索*.pc的路径

  1. pkg-config --variable pc_path pkg-confi
  2. # /usr/lib64/pkgconfig:/usr/share/pkgconfig
  1. cd /usr/local/src/iproute2
  2. find / -name *.pc | grep libmnl
  3. export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH
./configure

vim config.mk

多了如下:

make

make install all

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/article/detail/40211
推荐阅读
相关标签
  

闽ICP备14008679号