Table of contents

openvpn configure: error: libpam required but missing

Linux Jul 30, 2020 Viewed 6.2K Comments 0

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
Updated Jul 30, 2020