Не удалось открыть openssl ./configure - PullRequest
0 голосов
/ 09 марта 2020

Я пытаюсь вручную установить openvpn 2.4.8 на свой kali 2020.1, и он показывает

configure: error: openssl check failed

Я смотрел на многие темы, такие как this и this , но не смог это исправить. В чем причина и как это исправить?

1 Ответ

0 голосов
/ 14 марта 2020
Install OpenVPN 2.4.7
Visit https://openvpn.net/community-downloads/
Download via
#wget https://swupdate.openvpn.org/community/releases/openvpn-2.4.7.tar.gz
#tar xfz openvpn-2.4.7.tar.gz
#cd openvpn-2.4.7
#./configure
Output:
checking for a BSD-compatible install… /usr/bin/install -c
checking whether build environment is sane… ye
schecking for a thread-safe mkdir -p… /bin/mkdir
.
.
[truncated output]
.
checking for SSL_CTX_new… no
configure: error: openssl check failed
Install OpenSSL
Visit https://www.openssl.org/source
Download via
#wget https://www.openssl.org/source/openssl-1.0.2s.tar.gz
#tar xvf openssl-1.0.2.tar.gz
#./config -Wl,--enable-new-dtags,-rpath,'$(LIBRPATH)'
#make
#make install
Output:
#bash: /usr/bin/openssl: No such file or directory
Run Commands:

#ln -s /usr/local/ssl/bin/openssl /usr/bin/openssl

#ln -s /usr/local/ssl/bin/openssl /usr/local/bin/openssl

Note:
-openssl may or may not be needed. Since I uninstalled openssl to install latest version. Steps are mentioned below.
-/usr/local/bin is for locally compiled package and /usr/bin is for trivial binaries not needed in single user mode
Try Installing OpenVPN
#./configure 
#make
#make install
#openvpn — version
Output:
#OpenVPN 2.4.7 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD] built on Jul 26 2019library versions: OpenSSL 1.0.2g 1 Mar 2016, LZO 2.08Originally developed by James YonanCopyright © 2002–2018 OpenVPN Inc <sales@openvpn.net>
For the error “configure: error: ssl is required but missing”
#apt-get install libssl-dev
For the error “configure: error: lzo enabled but missing”
#apt-get install liblzo2-de
For the error “configure: error: libpam required but missing “
#apt-get install libpam0g-dev
Note:
-Sudo is not used as the vm was running as root. Also we can specify manually where to install ssl libraries,etc. It is just a general workaround.
...