歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Ubuntu下openvpn源碼安裝

Ubuntu下openvpn源碼安裝

日期:2017/2/28 16:56:05   编辑:Linux教程

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

Copyright © Linux教程網 All Rights Reserved