Ubuntu下openvpn源码安装

Ubuntu下openvpn源码安装 
 
OpenVPN依赖OpenSSL库,用于加密,需要安装。LZO库,数据压缩用,不使用该库也没有关系。

OpenSSL的下载地址:http://www.openssl.org/

LZO的下载地址:http://www.oberhumer.com/opensource/lzo/

OpenVPN的下载地址:http://www.openvpn.net

1、./configure --with-lzo-headers=/usr/local/include --with-lzo-lib=/usr/local/lib --with-ssl-headers=/usr/local/ssl/include/ --with-ssl-lib=/usr/local/ssl/lib/

如果不带--with-ssl-headers的话,就会出现下面的错误

configure: checking for OpenSSL Crypto Library and Header files...
checking openssl/evp.h usability... no
checking openssl/evp.h presence... no
checking for openssl/evp.h... no
configure: error: OpenSSL Crypto headers not found


如果不带 --with-ssl-lib=/usr/local/ssl/lib/,则出现的错误是

configure: checking for OpenSSL Crypto Library and Header files...
checking openssl/evp.h usability... yes
checking openssl/evp.h presence... yes
checking for openssl/evp.h... yes
checking for EVP_CIPHER_CTX_init in -lcrypto... no
configure: error: OpenSSL Crypto library not found.


make ;make install

相关推荐