1、从git库中下载最新版本的源码:
git clone https://github.com/OpenVPN/openvpn
git clone https://gitlab.com/OpenVPN/openvpn
git clone git://openvpn.git.sourceforge.net/gitroot/openvpn/openvpn
2、在源码的目录下执行:
autoreconf -i -v -f
这一步生成configure文件
3、执行./configure
./configure
4、错误1:
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
5、安装libnl-genl-3
yum install libnl3-devel
6、再次执行./configure发现如下错误:
configure: error: libcap-ng package not found. Is the development package and pkg-config (/usr/bin/pkg-config) installed?
7、安装libcap-ng-devel,解决上面的错误
yum install libcap-ng-devel
8、再次执行./configure发现如下错误:
configure: error: No compatible LZ4 compression library found. Consider --disable-lz4
9