Issue
In Linux, download the openvpn source and configure, and run the commands blew.
$ wget https://swupdate.openvpn.org/community/releases/openvpn-2.4.9.tar.gz
$ tar xf openvpn-2.4.9.tar.gz
$ cd openvpn-2.4.9
$ ./configure
But I get the error message saying:
checking for LZ4... no
checking lz4.h usability... no
checking lz4.h presence... no
checking for lz4.h... no
usable LZ4 library or header not found, using version in src/compat/compat-lz4.*
checking git checkout... no
checking whether the compiler acceppts -Wno-unused-function... yes
checking whether the compiler acceppts -Wno-unused-parameter... yes
checking whether the compiler acceppts -Wall... yes
configure: error: libpam required but missing
Solution
It needs to install pam
development package.
- RHEL/CentOS
Go to https://pkgs.org/search/?q=pam-devel and download pam-devel
, or run with yum
.
sudo yum install pam-devel
- Ubuntu/Debian
Go to https://pkgs.org/search/?q=libpam0g-dev and download libpam0g-dev
, or run with apt-get
。
sudo apt-get install libpam0g-dev
hi everyone,
I am trying to update my OpenVPN and OpenSSL.
In order to Update and Configure and Make Install OpenVPN to openvpn-2.4.4, I need to update my openssl to the latest openssl-1.0.2n
Code: Select all
$ cd~
$ wget https://openvpn.net/index.php/download/openvpn-2.4.4.tar.gz
$ sudo tar -zvxf openvpn--2.4.4.tar.gz
$ cd openvpn-2.4.4
$ sudo ./configure
$ sudo make
$ sudo make install
But when I reach ./configure above, I run into an issue with openssl as I have mentioned earlier:
Code: Select all
checking tap-windows.h presence... no
checking for tap-windows.h... no
checking whether TUNSETPERSIST is declared... yes
checking for setcon in -lselinux... no
checking for pam_start in -lpam... no
checking for PKCS11_HELPER... no
checking for OPENSSL... no
checking for SSL_CTX_new... no
configure: error: openssl check failed
So I am attempting the following commands to update to the latest openssl :
Code: Select all
$ cd /usr/src
$ wget https://www.openssl.org/source/openssl-1.0.1j.tar.gz -O openssl-1.0.1j.tar.gz
$ tar -zxf openssl-1.0.1j.tar.gz
$ cd openssl-1.0.1j
$ ./config
$ make
$ make test
$ make install
$ mv /usr/bin/openssl /root/
$ ln -s /usr/local/ssl/bin/openssl /usr/bin/openssl
$ openssl version
However, when I get to make test , I run into an error.
I have copy pasted my terminal output here because the output is HUGE : https://pastebin.com/sZVXiZaE
Does anyone have any idea how to move past this bug to continue and finish my openssl install?
Your help is highly appreciated.
My system:
RELEASE=18
CODENAME=sarah
EDITION=»Cinnamon 32-bit»
DESCRIPTION=»Linux Mint 18 Sarah»
DESKTOP=Gnome
TOOLKIT=GTK
GRUB_TITLE=Linux Mint 18 Cinnamon 32-bit
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Содержание
- Dieter Vansteenwegen (ON4DD)
- Manually Installing OpenVPN 2.4.7 On Ubuntu 16.04 Xenial
- Install OpenVPN 2.4.7
- Install OpenSSL
- Try Installing OpenVPN
- Solved OpenVPN-2.5.7 configure: error: lzo enabled but missing
- Alain De Vos
- covacat
- Alain De Vos
- FreshPorts — security/openvpn: Secure IP/Ethernet tunnel daemon
- _martin
- _martin
- OpenVPN Support Forum
- Noob trying to set up VPN ubuntu 10.10
- Noob trying to set up VPN ubuntu 10.10
- Yizhuan Yu
- Thursday, March 17, 2016
- Build OpenVPN on Ubuntu 14.04 from source code
- The try-and-fail building process
- The shortcut of building OpenVPN from source code on Ubuntu 14.04
Dieter Vansteenwegen (ON4DD)
The company I have been working for for a couple of months has an OpenVPN server running. Recently I wanted to install the client software on my Windows 7 desktop and my Linux laptop.
Our IT guy kindly supplied me with a executable to install and configure the client under Windows and a config file and certificates for Linux.
Windows 7 worked immediately but under Linux I had to do some extra steps to get it working properly. I’ll document them here for future reference and maybe other people running in to the same issues.
I had previously installed OpenVPN under linux and hoped the config file would be all I needed. When running
I got the error message:
Options error: Unrecognized option or missing parameter(s) in configfile.ovpn:11: verify-x509-name (2.2.1)
Use –help for more information.
Some digging around showed the “verify-x509-name” command was implemented starting at OpenVPN version 2.3. Using
and the default repositories in Ubuntu the installed version was 2.2.1
To get the latest version, I uninstalled the current installed version using
then downloaded and untarred the latest version from the community downloads (at this time 2.3.6)
Installing should work this way:
./config && sudo make && sudo make install
but I ran into dependency problems. Some error messages came up regarding the LZO package.
configure: error: lzo enabled but missing
I found this page by Droidzone describing the dependencies and some useful information on how to find missing dependencies during future installs. Worth a read.
sudo apt-get install libssl-dev liblzo2-dev libpam0g-dev
will install the necessary dependencies. After this the installation went fine:
OpenVPN 2.3.2 x86_64-unknown-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [eurephia] [MH] [IPv6] built on Dec 24 2014
Источник
Manually Installing OpenVPN 2.4.7 On Ubuntu 16.04 Xenial
Why I am still on 16.04 when ubuntu has already launch 19.04 Disco dingo? Answer is I have 16.04 with all the necessary tools. Anyway while working on hackthebox my vpn started dropping the connection. So, I decided to troubleshoot the problem myself before changing the configuration. After googling for hours and trying every possible method written I couldn’t find a solution to my OpenVPN issue. Finally I decided to follow htb alternate tcp connection. And from here begins the journey of openvpn and openssl.
Possible Solutions I tried:
- Tried restarting virtual box.
- Tried regenerating my opvn file.
- Tried updating my timezone.
- Tried resetting my timezone in htb profile and again regenerating ovpn file.
- Tried closing all connections and again connecting.
- Tried reading almost all threads related to similar issue.
But the above two issues kept on coming.
Finally I decided to change openvpn configuration from UDP to TCP according to official htb website.
Alternate TCP Connection
By default, our network uses UDP port 1337. If this port is blocked at your location, you can try switching to TCP 443 by editing your .ovpn file.
So after changing configuration the moment I ran:
Output:
Options error: Unrecognized option or missing parameter(s) in vpnfile.ovpn:18: tls-crypt
Checked the version:
Install OpenVPN 2.4.7
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
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
For the error “configure: error: ssl is required but missing”
For the error “configure: error: lzo enabled but missing”
For the error “configure: error: libpam required but missing “
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.
Источник
Solved OpenVPN-2.5.7 configure: error: lzo enabled but missing
Hi i am trying to upgrade my OpenVPN 2.5.3 to 2.5.7 version.
I followed below the instructions:
But at the ./configure section i got
I have installed below packages but no luck.
Any help would be appreciated at this point.
Alain De Vos
i already installed lzo2
mentioned above
/openvpn-2.5.7 # pkg install lzo2
Updating FreeBSD repository catalogue.
FreeBSD repository is up to date.
All repositories are up to date.
Checking integrity. done (0 conflicting)
The most recent versions of packages are already installed
/openvpn-2.5.7 # pkg info lzo2
lzo2-2.10_1
Name : lzo2
Version : 2.10_1
covacat
Reactions: Alain De Vos and zirias@
Alain De Vos
FreshPorts — security/openvpn: Secure IP/Ethernet tunnel daemon
_martin
Reactions: alfa
Here is solution i find from
_martin
To be honest I think that just butchers the FreeBSD installation and puts unnecessary symlinks across the FS. With that configure script you can tell it where the libs are, it will use is that way. You are also risking an issue if somebody/something removes those symlinks.
As a side note you can use ports to build it too as it was mentioned above. If you for some reason prefer different version than what is offered by ports you can use ports-mgmt/portdowngrade to select previous versions.
Источник
OpenVPN Support Forum
Community Support Forum
Noob trying to set up VPN ubuntu 10.10
Noob trying to set up VPN ubuntu 10.10
Post by JACKRABBit » Fri Mar 15, 2013 9:38 pm
I am trying to set up openvpn running on a VMware Workstation virtual machine using Ubunutu 10.10. I have tried to install openvpn using two different methods but both have not seemed to quite work for me yet.
The first way opening terminal and using sudo apt-get install oepnvpn with the following results:
$ sudo apt-get install openvpn
Reading package lists. Done
Building dependency tree
Reading state information. Done
E: Unable to locate package openvpn
linux@ubuntu:
After that didn’t work I went to the openvpn website and downloaded openvpn-2.3.0.tar.gz. from there I was able to extract then cd over to openvpn-2.3.0. From here I attempted to use ./configure && make && make install and received the following:
checking for ssl_init in -lpolarssl. no
checking for aes_crypt_cbc in -lpolarssl. no
checking for lzo1x_1_15_compress in -llzo2. no
checking for lzo1x_1_15_compress in -llzo. no
checking for PKCS11_HELPER. no
checking git checkout. no
configure: error: ssl is required but missing
linux@ubuntu:
From what I googled I believe this is an openssl problem so I went back into the terminal and tried
$ sudo apt-get install openssl
Reading package lists. Done
Building dependency tree
Reading state information. Done
openssl is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
linux@ubuntu:
So it seems that this is also up to date, I found two other options that said to go to system>admin>Synaptic Package Manager and try and hit reload. Also I tried to go to settings>repositories>download from>other>select best server but after searching it returns with «No suitable download server was found. Please check your internet connection.»
I’m unsure what to do after this point if someone would be kind enough to please advise how I would be able to get this set up properly that would be great!
Источник
Yizhuan Yu
Thursday, March 17, 2016
Build OpenVPN on Ubuntu 14.04 from source code
Building/compiling OpenVPN from source code is not straight forward as you might think. The main problems are dependency issues.
I noted my building process here with errors and solutions. My Ubuntu is a new installation. Many basic libraries are not installed.
The try-and-fail building process
$ cat /etc/issue
Ubuntu 14.04.4 LTS n l
$ sudo apt-get update
$ sudo apt-get install autoconf
$ git clone https://github.com/OpenVPN/openvpn.git
automake: project, to avoid future incompatibilities.
src/plugins/auth-pam/Makefile.am:16: error: Libtool library used but ‘LIBTOOL’ is undefined
src/plugins/auth-pam/Makefile.am:16: The usual way to define ‘LIBTOOL’ is to add ‘LT_INIT’
src/plugins/auth-pam/Makefile.am:16: to ‘configure.ac’ and run ‘aclocal’ and ‘autoconf’ again.
src/plugins/auth-pam/Makefile.am:16: If ‘LT_INIT’ is in ‘configure.ac’, make sure
src/plugins/auth-pam/Makefile.am:16: its definition is in aclocal’s search path.
src/plugins/down-root/Makefile.am:15: error: Libtool library used but ‘LIBTOOL’ is undefined
src/plugins/down-root/Makefile.am:15: The usual way to define ‘LIBTOOL’ is to add ‘LT_INIT’
src/plugins/down-root/Makefile.am:15: to ‘configure.ac’ and run ‘aclocal’ and ‘autoconf’ again.
src/plugins/down-root/Makefile.am:15: If ‘LT_INIT’ is in ‘configure.ac’, make sure
src/plugins/down-root/Makefile.am:15: its definition is in aclocal’s search path.
autoreconf: automake failed with exit status: 1
$ sudo apt-get install libtool
$ autoreconf -vi
autoreconf: Entering directory `.’
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal -I m4
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize —copy
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `.’.
libtoolize: copying file `./ltmain.sh’
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4′.
libtoolize: copying file `m4/libtool.m4′
libtoolize: copying file `m4/ltoptions.m4′
libtoolize: copying file `m4/ltsugar.m4′
libtoolize: copying file `m4/ltversion.m4′
libtoolize: copying file `m4/lt
obsolete.m4′
autoreconf: running: /usr/bin/autoconf
autoreconf: running: /usr/bin/autoheader
autoreconf: running: automake —add-missing —copy —no-force
src/openvpnserv/Makefile.am:32: warning: source file ‘$(top_srcdir)/src/openvpn/block_dns.c’ is in a subdirectory,
src/openvpnserv/Makefile.am:32: but option ‘subdir-objects’ is disabled
automake: warning: possible forward-incompatibility.
automake: At least a source file is in a subdirectory, but the ‘subdir-objects’
automake: automake option hasn’t been enabled. For now, the corresponding output
automake: object file(s) will be placed in the top-level directory. However,
automake: this behaviour will change in future Automake versions: they will
automake: unconditionally cause object files to be placed in the same subdirectory
automake: of the corresponding sources.
automake: You are advised to start using ‘subdir-objects’ option throughout your
automake: project, to avoid future incompatibilities.
autoreconf: Leaving directory `.’
$ ./configure
.
configure: error: openssl check failed
$ openssl version
OpenSSL 1.0.1f 6 Jan 2014
$ sudo apt-get install libssl-dev
checking for LZ4_compress in -llz4. no
LZ4 library not found.
checking lz4.h usability. no
checking lz4.h presence. no
checking for lz4.h. no
LZ4 headers not found.
LZ4 library or header not found, using version in src/compat/compat-lz4.*
checking git checkout. yes
configure: error: lzo enabled but missing
$ sudo apt-get install liblz4-dev
checking for lzo1x_1_15_compress in -llzo2. no
checking for lzo1x_1_15_compress in -llzo. no
configure: checking for LZ4 Library and Header files.
checking for LZ4_compress in -llz4. yes
checking lz4.h usability. yes
checking lz4.h presence. yes
checking for lz4.h. yes
checking git checkout. yes
configure: error: lzo enabled but missing
$ sudo apt-get install liblz4-tool
Reading package lists. Done
Building dependency tree
Reading state information. Done
The following NEW packages will be installed
liblz4-tool
0 to upgrade, 1 to newly install, 0 to remove and 54 not to upgrade.
Need to get 32.9 kB of archives.
After this operation, 170 kB of additional disk space will be used.
Get:1 http://gb.archive.ubuntu.com/ubuntu/ trusty/universe liblz4-tool amd64 0.0
r114-2ubuntu1 [32.9 kB]
Fetched 32.9 kB in 0s (102 kB/s)
Selecting previously unselected package liblz4-tool.
(Reading database . 102534 files and directories currently installed.)
Preparing to unpack . /liblz4-tool_0.0
r114-2ubuntu1_amd64.deb .
Unpacking liblz4-tool (0.0
r114-2ubuntu1) .
Processing triggers for man-db (2.6.7.1-1ubuntu1) .
Setting up liblz4-tool (0.0
checking for EVP_aes_256_gcm. yes
checking for lzo1x_1_15_compress in -llzo2. no
checking for lzo1x_1_15_compress in -llzo. no
configure: checking for LZ4 Library and Header files.
checking for LZ4_compress in -llz4. yes
checking lz4.h usability. yes
checking lz4.h presence. yes
checking for lz4.h. yes
checking git checkout. yes
configure: error: lzo enabled but missing
$ sudo apt-get install liblzo2-dev libpam0g-dev
Build is successful this time!
The shortcut of building OpenVPN from source code on Ubuntu 14.04
Here is the short list of commands for solving the dependency issues:
$ sudo apt-get update
$ sudo apt-get install autoconf
$ sudo apt-get install libtool
$ sudo apt-get install libssl-dev liblz4-dev liblz4-tool liblzo2-dev libpam0g-dev
Источник
-
Summary
-
Reviews
-
Support
-
Git ▾
- easy-rsa
- openvpn
- openvpn-historical-cvs
- tap-windows
-
Mailing Lists
-
News
-
Donate
Menu
▾
▴
From: Timothe Litt <li…@ac…> — 2014-04-08 17:27:47 |
To get to some features that I want from master, I'm trying to cross-build for the Raspberry PI. The host is a 32-bit x86 Fedora 20. It's a new VPS, so there's not much cruft lying about. The target is debian (Wheezy) as distributed by RPI I have made no changes to build or build.vars; I do have a wrapper script that runs the build. I've made some progress, but am currently stuck. First issue: OpenSSL doesn't build due to pod issues in the auto-generated man/html doc. (perl is 5.18.2; I suspect its pod parser is stricter than older versions). Since I don't care about the man/html pages, I patched that out. Second issue: openvpn configure dies wanting the route command - not standard in F20. Installed net-tools. Also had to install patch. Third issue: LZO build warnings from configure: configure: WARNING: lzo/lzoutil.h: accepted by the compiler, rejected by the preprocessor! configure: WARNING: lzo/lzoutil.h: proceeding with the compiler's result configure: WARNING: lzo/lzo1x.h: accepted by the compiler, rejected by the preprocessor! configure: WARNING: lzo/lzo1x.h: proceeding with the compiler's result Fourth issue: configure: error: libpam required but missing FATAL: Configure openvpn And here I'm stuck. I can install libpam-dev on the RPI (apt-get turns it into libpam0g-dev), but where to put the headers (and sos) in the maze of x-compile directories escapes me. On the RPI: The .sos are in /lib/arm-linux-gnueabihf/libpam* The .hs are in /usr/include/security/ What exactly do I need to copy to the compile host, and where do the files go? My exact build attempt (I script it so I can reproduce results) is: #!/bin/bash cd /user || exit # Get the RPI cross tools (compilers are configured for the RPI BCM CPU) mkdir -p rpi || exit cd rpi || exit git clone git://github.com/raspberrypi/tools.git tools || exit # openvpn build system cd /user ||exit mkdir -p openvpn || exit cd openvpn || exit git clone https://github.com/OpenVPN/openvpn-build.git openvpn-build cd /user/openvpn/openvpn-build/generic || exit export CCFLAGS="-march=armv4 -mno-thumb-interwork" export PATH=/user/rpi/tools/arm-bcm2708/arm-bcm2708-linux-gnueabi/bin:$PATH # There are syntax errors in the generated pod that kill the openssl install. Since we don't need the # documentation for this cross-build, disable the utilities for U in pod2man pod2html pod2text pod2usage; do util=`which $U` if [ ! -L $util ]; then if [ -e ${util}.orig ]; then rm -f $util else mv $util ${util}.orig fi ln -s `which true` $util fi done IMAGEROOT=`pwd`/image-rpi CHOST=arm-bcm2708-linux-gnueabi CBUILD=x86_64-pc-linux-gnu ./build rv=$? for U in pod2man pod2html pod2text pod2usage; do util=`which $U` if [ -e ${util}.orig ]; then rm -f $util cp -p ${util}.orig $util fi done exit $rv #EOF |