I am trying to manually install openvpn 2.4.8 on my kali 2020.1, and it shows
configure: error: openssl check failed
I looked at many threads such as this and this, but couldn’t fix it.
What is the reason and how to fix this?
asked Mar 9, 2020 at 12:49
sh.3.llsh.3.ll
8157 silver badges17 bronze badges
Short version : libssl-dev library is missing which can be fixed by running
apt-get install libssl-dev
answered Mar 16, 2021 at 17:18
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.
answered Mar 14, 2020 at 20:06
1
Содержание
- Anubisss / README.md
- Debian
- Openssl
- OpenVPN
- Final
- Debian
- Openssl
- OpenVPN
- Final
- Openvpn configure error openssl check failed
Anubisss / README.md
How to compile statically linked OpenVPN client for ARMv5
You need to install ARMv5 gcc cross compiler: apt-get install gcc-arm-linux-gnueabi
You have to define a directory (via —prefix) where all of your binaries will be installed (copied). In the guide I use the following: /home/user/vpn_compile
- Download the source: wget https://www.openssl.org/source/openssl-1.0.2j.tar.gz
- Extract it and change the working directory: tar -xvf openssl-1.0.2j.tar.gz && cd openssl-1.0.2j
- Configure it: ./Configure gcc -static -no-shared —prefix=/home/user/vpn_compile —cross-compile-prefix=arm-linux-gnueabi-
- Compile: make
- Install: make install
- Download the source: wget http://www.oberhumer.com/opensource/lzo/download/lzo-2.09.tar.gz
- Extract it and change the working directory: tar -xvf lzo-2.09.tar.gz && cd lzo-2.09
- Configure it: ./configure —prefix=/home/user/vpn_compile —enable-static —target=arm-linux-gnueabi —host=arm-linux-gnueabi —disable-debug
- Compile: make
- Install: make install
- Download the source: wget https://swupdate.openvpn.org/community/releases/openvpn-2.3.12.tar.gz
- Extract it and change the working directory: tar -xvf openvpn-2.3.12.tar.gz && cd openvpn-2.3.12
- Configure it: ./configure —target=arm-linux-gnueabi —host=arm-linux-gnueabi —prefix=/home/user/vpn_compile —disable-server —enable-static —disable-shared —disable-debug —disable-plugins OPENSSL_SSL_LIBS=»-L/home/user/vpn_compile/lib -lssl» OPENSSL_SSL_CFLAGS=»-I/home/user/vpn_compile/include» OPENSSL_CRYPTO_LIBS=»-L/home/user/vpn_compile/lib -lcrypto» OPENSSL_CRYPTO_CFLAGS=»-I/home/user/vpn_compile/include» LZO_CFLAGS=»-I/home/user/vpn_compile/include» LZO_LIBS=»-L/home/user/vpn_compile/lib -llzo2″
- Compile: make LIBS=»-all-static»
- Install: make install
Your OpenVPN client is here: /home/user/vpn_compile/sbin/openvpn
Make sure this is what you need:
Step OpenVPN, end of step 3: missing slash:
Otherwise thanks a lot for all of this. I’d still need to figure out how to build for linux 2.6 though, my target device has a very old kernel.
if experiencing any error related to «unable to find openssl lib» (e.g. configure: error: openssl check failed), you may want to try replacing
OPENSSL_SSL_LIBS=»-L/home/user/vpn_compile/lib -lssl» OPENSSL_SSL_CFLAGS=»-I/home/user/vpn_compile/include» OPENSSL_CRYPTO_LIBS=»-L/home/user/vpn_compile/lib -lcrypto» OPENSSL_CRYPTO_CFLAGS=»-I/home/user/vpn_compile/include» LZO_CFLAGS=»-I/home/user/vpn_compile/include» LZO_LIBS=»-L/home/user/vpn_compilelib -llzo2″
OPENSSL_SSL_CFLAGS=»-I/home/user/vpn_compile/include» OPENSSL_CRYPTO_CFLAGS=»-I/home/user/vpn_compile/include» LZO_CFLAGS=»-I/home/user/vpn_compile/include» LIBS=»-L/home/user/vpn_compile/lib -lssl -lcrypto -llzo2″
since the order of «-lssl -lcrypto -llzo2» matters. It works for me.
I just want to point out here to save others time.. some time between OpenVPN 2.3 and OpenVPN 2.4.5 the names of the variables related to OpenSSL changed from OPENSSL_SSL_CFLAGS to OPENSSL_CFLAGS as well as OPENSSL_SSL_LIBS to OPENSSL_LIBS . I was banging my head against a wall until I finally just did a diff of the ./configure —help output of the 2 versions :>
Building for a Ubiquity EdgeRouter, my final configure command for OpenVPN 2.4.5 (latest stable) ended up like this (note I added LZ4 and a few other things just to match the stock Ubiquity shipped OpenVPN:
I am building 2.4.9 (2.3.12 works with the given description, thanks for that!!):
./configure —target=arm-linux-gnueabihf —host=arm-linux-gnueabihf —prefix=/home/user/vpn_compile —disable-server —enable-static —disable-shared —disable-debug —disable-plugins OPENSSL_LIBS=»-L/home/user/vpn_compile/lib -lssl» OPENSSL_CFLAGS=»-I/home/user/vpn_compile/include» OPENSSL_CRYPTO_LIBS=»-L/home/user/vpn_compile/lib -lcrypto» OPENSSL_CRYPTO_CFLAGS=»-I/home/user/vpn_compile/include» LZO_CFLAGS=»-I/home/user/vpn_compile/include» LZO_LIBS=»-L/home/user/vpn_compile/lib -llzo2″ LIBS=»-L/home/user/vpn_compile/lib -lssl -lcrypto -llzo2″
However, resulting in:
Any idea what’s wrong?
openssl 1.1.1f
@hanneshoettinger I have no idea to be honest. I’m not working on/with this anymore.
From the error message it looks like you have to link (-l) some lib (or the proper version?) to able to compile (link) the openSSL.
Long story short: this page/tutorial and your replies saved my life. ^^
@Anubisss: many many thanks for your hard work. It’s simply awesome!
Below, a quick digest (tested twice) to build OpenVPN 2.4.9 (server & client) with lzo and lz4 for ARM using Debian 9.
Debian
apt-get install build-essential gcc-arm-linux-gnueabi ca-certificates
mkdir /home/source /home/openvpn
cd lzo-2.10
./configure —prefix=/home/openvpn —enable-static —target=arm-linux-gnueabi —host=arm-linux-gnueabi
make && make install
cd lz4-1.9.2
make && PREFIX=/home/openvpn make install
Openssl
cd openssl-1.1.1h
./Configure gcc -static -no-shared —prefix=/home/openvpn —cross-compile-prefix=arm-linux-gnueabi-
make && make install
OpenVPN
cd openvpn-2.4.9
./configure —target=arm-linux-gnueabi —host=arm-linux-gnueabi —prefix=/home/openvpn —enable-static —disable-shared —disable-debug —disable-plugins OPENSSL_CFLAGS=»-I/home/openvpn/include» OPENSSL_LIBS=»-L/home/openvpn/lib -lssl -lcrypto» LZO_CFLAGS=»-I/home/openvpn/include» LZO_LIBS=»-L/home/openvpn/lib -llzo2″ LZ4_CFLAGS=»-I/home/openvpn/include» LZ4_LIBS=»-L/home/openvpn/lib -llz4″ IFCONFIG=/sbin/ifconfig ROUTE=/sbin/route NETSTAT=/bin/netstat IPROUTE=/sbin/ip —enable-iproute2
make LIBS=»-all-static» && make install
Final
openvpn (static) binary is here!
@trendymail Great work, thank you!
Long story short: this page/tutorial and your replies saved my life. ^^
@Anubisss: many many thanks for your hard work. It’s simply awesome!
Below, a quick digest (tested twice) to build OpenVPN 2.4.9 (server & client) with lzo and lz4 for ARM using Debian 9.
Debian
apt-get install build-essential gcc-arm-linux-gnueabi ca-certificates
mkdir /home/source /home/openvpn
cd lzo-2.10
./configure —prefix=/home/openvpn —enable-static —target=arm-linux-gnueabi —host=arm-linux-gnueabi
make && make install
cd lz4-1.9.2
make && PREFIX=/home/openvpn make install
Openssl
cd openssl-1.1.1h
./Configure gcc -static -no-shared —prefix=/home/openvpn —cross-compile-prefix=arm-linux-gnueabi-
make && make install
OpenVPN
cd openvpn-2.4.9
./configure —target=arm-linux-gnueabi —host=arm-linux-gnueabi —prefix=/home/openvpn —enable-static —disable-shared —disable-debug —disable-plugins OPENSSL_CFLAGS=»-I/home/openvpn/include» OPENSSL_LIBS=»-L/home/openvpn/lib -lssl -lcrypto» LZO_CFLAGS=»-I/home/openvpn/include» LZO_LIBS=»-L/home/openvpn/lib -llzo2″ LZ4_CFLAGS=»-I/home/openvpn/include» LZ4_LIBS=»-L/home/openvpn/lib -llz4″ IFCONFIG=/sbin/ifconfig ROUTE=/sbin/route NETSTAT=/bin/netstat IPROUTE=/sbin/ip —enable-iproute2
make LIBS=»-all-static» && make install
Final
openvpn (static) binary is here!
I am getting configure: error: openssl check failed .
I fixed it, for future reference. Do Check config.log, there would be different errors. See how you can fix them
If I follow those instructions to build statically for x86_64 (remove the right -target args), I end up with a non-static build:
I have all the .a libs at the right place though.
I did a cleanup, it works, sorry for the noise:
I have follow the steps but I have a dynamic library dependency for lz4:
otool -L openvpn
openvpn:
/usr/lib/libresolv.9.dylib (compatibility version 1.0.0, current version 1.0.0)
/usr/local/lib/liblz4.1.dylib (compatibility version 1.0.0, current version 1.9.2)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1311.100.3)
I am working in macOS.
I have checked the libraries and I have the static lz4 library:
ls -l liblz4*
-rwxr-xr-x 1 pepeteg staff 156987 25 abr 23:37 liblz4.1.9.2.dylib
lrwxr-xr-x 1 pepeteg staff 18 25 abr 23:37 liblz4.1.dylib -> liblz4.1.9.2.dylib
-rw-r—r— 1 pepeteg staff 151800 25 abr 23:37 liblz4.a
lrwxr-xr-x 1 pepeteg staff 18 25 abr 23:37 liblz4.dylib -> liblz4.1.9.2.dylib
Please, could you tell me how you solved it?.
Источник
Openvpn configure error openssl check failed
Привет всем! Прошу помочь.
Начал устанавливать OpenVPN на Cent OS 5, сначала ошибка выскочила, что отсутствует lzo, установил данный пакет, затем начал заново устанавливать openvpn:./configure, появилась ошибка Configure:Error:OpenSSL Crypto Headers not found. Залез на сайт openssl, установил, затем опять попробовал — ошибка та же. Не можете подсказать, в чем проблема?Чего не хватает?
Ответить | Правка | Cообщить модератору
- Не получается установить openvpn на CentOS, rusadmin, 15:01 , 11-Апр-11, (1)
- Не получается установить openvpn на CentOS, Aleks305, 21:11 , 11-Апр-11, (5)
- Не получается установить openvpn на CentOS, Aleks305, 21:49 , 11-Апр-11, (6)
- Не получается установить openvpn на CentOS, rusadmin, 06:42 , 12-Апр-11, (9)
- Не получается установить openvpn на CentOS, Aleks305, 22:10 , 12-Апр-11, (11)
- Не получается установить openvpn на CentOS, rusadmin, 06:42 , 12-Апр-11, (9)
- Не получается установить openvpn на CentOS, xeon, 18:16 , 11-Апр-11, (2)
- Не получается установить openvpn на CentOS, rusadmin, 18:47 , 11-Апр-11, (3)
- Не получается установить openvpn на CentOS, Aleks305, 21:10 , 11-Апр-11, (4)
- Не получается установить openvpn на CentOS, Aleks305, 23:06 , 11-Апр-11, (7)
- Не получается установить openvpn на CentOS, rusadmin, 06:41 , 12-Апр-11, (8)
- Не получается установить openvpn на CentOS, Aleks305, 22:03 , 12-Апр-11, (10)
- Не получается установить openvpn на CentOS, rusadmin, 06:52 , 13-Апр-11, (12)
- Не получается установить openvpn на CentOS, Aleks305, 09:35 , 13-Апр-11, (13)
- Не получается установить openvpn на CentOS, Aleks305, 12:50 , 14-Апр-11, (14)
- Не получается установить openvpn на CentOS, rusadmin, 14:14 , 14-Апр-11, (15)
- Не получается установить openvpn на CentOS, PavelR, 16:17 , 14-Апр-11, (16)
- Не получается установить openvpn на CentOS, Aleks305, 17:42 , 14-Апр-11, ( 17 )
- Не получается установить openvpn на CentOS, PavelR, 20:56 , 16-Апр-11, ( 18 )
- Не получается установить openvpn на CentOS, Aleks305, 00:31 , 18-Апр-11, ( 19 )
- Не получается установить openvpn на CentOS, PavelR, 07:15 , 18-Апр-11, ( 20 )
- Не получается установить openvpn на CentOS, PavelR, 20:56 , 16-Апр-11, ( 18 )
- Не получается установить openvpn на CentOS, Aleks305, 17:42 , 14-Апр-11, ( 17 )
- Не получается установить openvpn на CentOS, Aleks305, 12:50 , 14-Апр-11, (14)
- Не получается установить openvpn на CentOS, Aleks305, 09:35 , 13-Апр-11, (13)
- Не получается установить openvpn на CentOS, rusadmin, 06:52 , 13-Апр-11, (12)
- Не получается установить openvpn на CentOS, Aleks305, 22:03 , 12-Апр-11, (10)
- Не получается установить openvpn на CentOS, rusadmin, 06:41 , 12-Апр-11, (8)
- Не получается установить openvpn на CentOS, rusadmin, 18:47 , 11-Апр-11, (3)
Сообщения по теме | [Сортировка по времени | RSS] |
> Привет всем! Прошу помочь.
> Начал устанавливать OpenVPN на Cent OS 5, сначала ошибка выскочила, что отсутствует
> lzo, установил данный пакет, затем начал заново устанавливать openvpn:./configure, появилась
> ошибка Configure:Error:OpenSSL Crypto Headers not found. Залез на сайт openssl, установил,
> затем опять попробовал — ошибка та же. Не можете подсказать, в
> чем проблема?Чего не хватает?
укажите где лежат инклуды и библиотеки от OpenSSL
Все ключи видны по ./configure —help|less
1. «Не получается установить openvpn на CentOS» | + / – | |
Сообщение от rusadmin (ok) on 11-Апр-11, 15:01 | ||
Ответить | Правка | ^ к родителю #0 | Наверх | Cообщить модератору |
5. «Не получается установить openvpn на CentOS» | + / – | |
Сообщение от Aleks305 (ok) on 11-Апр-11, 21:11 | ||
|
||
Ответить | Правка | ^ к родителю #1 | Наверх | Cообщить модератору |
6. «Не получается установить openvpn на CentOS» | + / – | |
Сообщение от Aleks305 (ok) on 11-Апр-11, 21:49 | ||
ввел команду, как Вы указали, нашел такую строку Соответственно, мне нужно ввести две команды: |
||
Ответить | Правка | ^ к родителю #1 | Наверх | Cообщить модератору |
9. «Не получается установить openvpn на CentOS» | + / – | |
Сообщение от rusadmin (ok) on 12-Апр-11, 06:42 | ||
да, только предварительно сделать make clean |
||
Ответить | Правка | ^ к родителю #6 | Наверх | Cообщить модератору |
11. «Не получается установить openvpn на CentOS» | + / – | |
Сообщение от Aleks305 (ok) on 12-Апр-11, 22:10 | ||
make clean не прошла |
||
Ответить | Правка | ^ к родителю #9 | Наверх | Cообщить модератору |
2. «Не получается установить openvpn на CentOS» | + / – | |
Сообщение от xeon (??) on 11-Апр-11, 18:16 | ||
Не страдайте ху#%ей, юзайте yum — yum install openvpn. |
||
Ответить | Правка | ^ к родителю #0 | Наверх | Cообщить модератору |
3. «Не получается установить openvpn на CentOS» | + / – | |
Сообщение от rusadmin (ok) on 11-Апр-11, 18:47 | ||
Ну что же вы так резко то? Может человек хочет линукс с азов изучить, без манагеров пакетов =) |
||
Ответить | Правка | ^ к родителю #2 | Наверх | Cообщить модератору |
4. «Не получается установить openvpn на CentOS» | + / – | |
Сообщение от Aleks305 (ok) on 11-Апр-11, 21:10 | ||
второе высказывание кратко и по делу)))поржал даже. Все правильно, я мало знаю Linux, специализируюсь на cisco, hp и т.д. буду пробовать через yum |
||
Ответить | Правка | ^ к родителю #3 | Наверх | Cообщить модератору |
7. «Не получается установить openvpn на CentOS» | + / – | |
Сообщение от Aleks305 (ok) on 11-Апр-11, 23:06 | ||
Такой вывод я получил, при попытке из tar получить rpm |
||
Ответить | Правка | ^ к родителю #3 | Наверх | Cообщить модератору |
8. «Не получается установить openvpn на CentOS» | + / – | |
Сообщение от rusadmin (ok) on 12-Апр-11, 06:41 | ||
А смысл получать из исходников rpm? Установите его либо с репозитория (yum install), либо из самого исходника. Сами RPM-ки можете поискать например на http://rpmfind.net/, если в репозитории нет |
||
Ответить | Правка | ^ к родителю #7 | Наверх | Cообщить модератору |
10. «Не получается установить openvpn на CentOS» | + / – | |
Сообщение от Aleks305 (ok) on 12-Апр-11, 22:03 | ||
скачал с указанного сайта openvpn-2.1.4-2.el5.rf.i386.rpm, попробовал установить, как указано на сайте openvpn Попробовал [root@localhost openvpn]# yum install openvpn-2.1.4-2.el5.rf.i386.rpm Я уже совсем запутался, что делать. почему не устанавливается? |
||
Ответить | Правка | ^ к родителю #8 | Наверх | Cообщить модератору |
12. «Не получается установить openvpn на CentOS» | + / – | |
Сообщение от rusadmin (ok) on 13-Апр-11, 06:52 | ||
yum install openvpn должен был сам по идее все зависимости подтянуть. |
||
Ответить | Правка | ^ к родителю #10 | Наверх | Cообщить модератору |
13. «Не получается установить openvpn на CentOS» | + / – | |
Сообщение от Aleks305 (ok) on 13-Апр-11, 09:35 | ||
так уже установлены. чего же он просит? и сам он ничего не подтягивает почему-то |
||
Ответить | Правка | ^ к родителю #12 | Наверх | Cообщить модератору |
14. «Не получается установить openvpn на CentOS» | + / – | |
Сообщение от Aleks305 (ok) on 14-Апр-11, 12:50 | ||
Конфиг сервера для openvpn: Запустил сервер, tun поднялся, ip-адрес у него 192.168.90.1/24, также у него появился p-t-p адрес 192.168.90.2/32 — не знаю, что это такое. не ну point-to-point я понимаю, но для чего он. На клиенте следующий конфиг: Установил на клиента openvpngui начинаю подключать, в логах подключения клиента выскакивает ошибка Я так понимаю, просто нужно каким-то образом пробросить порт на 1194 на прослушивание на eth0 интерфейс. Но как это сделать? Прошу помочь. |
||
Ответить | Правка | ^ к родителю #13 | Наверх | Cообщить модератору |
15. «Не получается установить openvpn на CentOS» | + / – | |
Сообщение от rusadmin (ok) on 14-Апр-11, 14:14 | ||
на сервере прослушайте интерфейс входящий, приходят ли вообще пакеты |
||
Ответить | Правка | ^ к родителю #14 | Наверх | Cообщить модератору |
16. «Не получается установить openvpn на CentOS» | + / – | |
Сообщение от PavelR (??) on 14-Апр-11, 16:17 | ||
Не, вы всё-таки их покажите, там скорее всего закрыто. а вот так я вижу что он слушает порт: # netstat -an|grep 1194 |
||
Ответить | Правка | ^ к родителю #14 | Наверх | Cообщить модератору |
17 . «Не получается установить openvpn на CentOS» | + / – | |
Сообщение от Aleks305 (ok) on 14-Апр-11, 17:42 | ||
# netstat -an|grep 1194 Да проблема была именно в iptables, добавил правило , openvpn заработал. ток все равно надо с ним разбираться. ну результат есть, буду дальше решать |
||
Ответить | Правка | ^ к родителю #16 | Наверх | Cообщить модератору |
18 . «Не получается установить openvpn на CentOS» | + / – | |
Сообщение от PavelR (??) on 16-Апр-11, 20:56 | ||
Лог надо прописать в конфиге, причем есть отдельная опция для append > 2) клиент получил ip 192.168.90.6/30 Используйте tap а не tun. > ну результат есть, буду дальше решать |
||
Ответить | Правка | ^ к родителю #17 | Наверх | Cообщить модератору |
19 . «Не получается установить openvpn на CentOS» | + / – | |
Сообщение от Aleks305 (ok) on 18-Апр-11, 00:31 | ||
не совсем понял после прочтения доков, случаи когда применяется tap а когда tun. Не подскажете? |
||
Ответить | Правка | ^ к родителю #18 | Наверх | Cообщить модератору |
20 . «Не получается установить openvpn на CentOS» | + / – | |
Сообщение от PavelR (??) on 18-Апр-11, 07:15 | ||
tun — ip-инкапсуляция. Соответственно, линк — точка-точка, но виндовс-драйвер может принимать (так думают разработчики openvpn) только «правильные» подсети, минимально /30 как в вашем случае. Источник Adblock |
You need to install ARMv5 gcc cross compiler: apt-get install gcc-arm-linux-gnueabi
You have to define a directory (via —prefix) where all of your binaries will be installed (copied).
In the guide I use the following: /home/user/vpn_compile
OpenSSL
- Download the source:
wget https://www.openssl.org/source/openssl-1.0.2j.tar.gz
- Extract it and change the working directory:
tar -xvf openssl-1.0.2j.tar.gz && cd openssl-1.0.2j
- Configure it:
./Configure gcc -static -no-shared --prefix=/home/user/vpn_compile --cross-compile-prefix=arm-linux-gnueabi-
- Compile:
make
- Install:
make install
LZO
- Download the source:
wget http://www.oberhumer.com/opensource/lzo/download/lzo-2.09.tar.gz
- Extract it and change the working directory:
tar -xvf lzo-2.09.tar.gz && cd lzo-2.09
- Configure it:
./configure --prefix=/home/user/vpn_compile --enable-static --target=arm-linux-gnueabi --host=arm-linux-gnueabi --disable-debug
- Compile:
make
- Install:
make install
OpenVPN
- Download the source:
wget https://swupdate.openvpn.org/community/releases/openvpn-2.3.12.tar.gz
- Extract it and change the working directory:
tar -xvf openvpn-2.3.12.tar.gz && cd openvpn-2.3.12
- Configure it:
./configure --target=arm-linux-gnueabi --host=arm-linux-gnueabi --prefix=/home/user/vpn_compile --disable-server --enable-static --disable-shared --disable-debug --disable-plugins OPENSSL_SSL_LIBS="-L/home/user/vpn_compile/lib -lssl" OPENSSL_SSL_CFLAGS="-I/home/user/vpn_compile/include" OPENSSL_CRYPTO_LIBS="-L/home/user/vpn_compile/lib -lcrypto" OPENSSL_CRYPTO_CFLAGS="-I/home/user/vpn_compile/include" LZO_CFLAGS="-I/home/user/vpn_compile/include" LZO_LIBS="-L/home/user/vpn_compile/lib -llzo2"
- Compile:
make LIBS="-all-static"
- Install:
make install
Your OpenVPN client is here: /home/user/vpn_compile/sbin/openvpn
Make sure this is what you need:
$ file /home/user/vpn_compile/sbin/openvpn
/home/user/vpn_compile/sbin/openvpn: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), statically linked, for GNU/Linux 3.2.0, BuildID[sha1]=e6fd2008c129fef90ed9826e3ffb9d53e83eb42c, not stripped
Versions
Build system:
$ uname -rm
4.4.0-45-generic x86_64
$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.1 LTS"
$ arm-linux-gnueabi-gcc --version
arm-linux-gnueabi-gcc (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.1) 5.4.0 20160609
Target system:
$ uname -rm
3.2.34 armv5tejl
$ openvpn --version
OpenVPN 2.3.12 arm-unknown-linux-gnueabi [SSL (OpenSSL)] [LZO] [EPOLL] [MH] [IPv6] built on Oct 27 2016
library versions: OpenSSL 1.0.2j 26 Sep 2016, LZO 2.09
Originally developed by James Yonan
Copyright (C) 2002-2010 OpenVPN Technologies, Inc. <sales@openvpn.net>
Compile time defines: enable_crypto=yes enable_crypto_ofb_cfb=yes enable_debug=no enable_def_auth=yes enable_dlopen=unknown enable_dlopen_self=unknown enable_dlopen_self_static=unknown enable_fast_install=needless enable_fragment=yes enable_http_proxy=yes enable_iproute2=no enable_libtool_lock=yes enable_lzo=yes enable_lzo_stub=no enable_management=yes enable_multi=yes enable_multihome=yes enable_pam_dlopen=no enable_pedantic=no enable_pf=yes enable_pkcs11=no enable_plugin_auth_pam=no enable_plugin_down_root=no enable_plugins=no enable_port_share=yes enable_selinux=no enable_server=no enable_shared=no enable_shared_with_static_runtimes=no enable_small=no enable_socks=yes enable_ssl=yes enable_static=yes enable_strict=no enable_strict_options=no enable_systemd=no enable_win32_dll=yes enable_x509_alt_username=no with_crypto_library=openssl with_gnu_ld=yes with_mem_check=no with_plugindir='$(libdir)/openvpn/plugins' with_sysroot=no
I was trying to install node.js and found OpenSSL support missing during ./configure
.
How can I fix it? Is it a mandatory step? Would the --without-ssl
option fix the problem?
# ./configure
Checking for gcc : ok
Checking for library dl : not found
Checking for openssl : not found
Checking for function SSL_library_init : not found
Checking for header openssl/crypto.h : not found
/home/ec2-user/node-v0.6.6/wscript:374: error: Could not autodetect OpenSSL
support.
Make sure OpenSSL development packages are installed. Use configure --without-ssl
to disable this message.
asked Dec 27, 2011 at 9:51
1
Yes, it’s a mandatory step. You cannot remove OpenSSL from a program uses it, the same way you couldn’t remove random engine parts from a car.
The OpenSSL library is usually already installed, but you have to install the header files. Depending on your Linux distribution, you’ll need these packages:
- Red Hat, Fedora, CentOS —
openssl-devel
- Debian, Ubuntu —
libssl-dev
- Arch —
openssl
Technically one could replace OpenSSL with, say, NSS, but that’s not the point here.
answered Dec 27, 2011 at 10:41
user1686user1686
401k59 gold badges846 silver badges916 bronze badges
4
debian:
apt-get install libssl-dev
apt-get install linux-headers-$(uname -r)
Kevin Panko
7,22622 gold badges43 silver badges52 bronze badges
answered Oct 7, 2014 at 18:18
Albert EAlbert E
1211 silver badge2 bronze badges
5
No, it isn’t.
You can still compile nodejs with ./configure --without-ssl
Kevin Panko
7,22622 gold badges43 silver badges52 bronze badges
answered Jun 15, 2012 at 6:23
grigorisgrigoris
511 silver badge1 bronze badge
This is showing up on Google for a problem that may come up with some installations — possibly links-g. I had the problem on Archlinux with links-utf8 and links-g-directfb.
Likely presentation:
checking OPENSSL_CFLAGS...
checking OPENSSL_LIBS... -lssl -lcrypto
checking for OpenSSL... no
configure: error: OpenSSL not found
Try this:
sed -i "/ac_cpp=/s/$CPPFLAGS/$CPPFLAGS -O2/" configure
Using this command before your ./configure
step should fix it.
Kevin Panko
7,22622 gold badges43 silver badges52 bronze badges
answered Jul 1, 2013 at 22:48
1
You must install openssl-devel
in your OS with:
yum install openssl-devel.x86_64
./configure --with-tls
make install
Leathe
7644 silver badges11 bronze badges
answered Nov 10, 2015 at 10:10
If you don’t succeed with libssl-dev only, over Debian distro, you could include both SSL Library versions same time
apt-get install libssl-dev libssl1.0
answered Feb 11, 2019 at 14:31