openvpn 编译失败 configure: error: route utility is required but missing
问题描述
下载并解压 openvpn 的源码,运行以下编译命令:
./configure --prefix=/opt/openvpn-2.4.9
最后报错了。
checking for lzo1x_1_15_compress in -llzo2... no
checking for lzo1x_1_15_compress in -llzo... no
checking for LZ4... no
checking lz4.h usability... no
checking lz4.h presence... no
checking for lz4.h... no
usable LZ4 library or header not found, using version in src/compat/compat-lz4.*
checking git checkout... no
configure: error: route utility is required but missing
解决方法
需要安装 net-tool
。
- Ubuntu/Debian
从 https://pkgs.org/download/net-tools 下载并安装 net-tool
,或者运行 apt-get
命令。
sudo apt-get install net-tools
- RHEL/CentOS
从 https://pkgs.org/download/net-tools 下载并安装 net-tool
,或者运行 yum
命令。
sudo yum install net-tools