openvpn 编译错误 configure: error: libpam required but missing

Linux 2020-07-29 阅读 495 评论 0

问题描述

下载 openvpn 的源码,运行以下编译命令。

$ 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

最后出现错误而中止。

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

解决方法

安装 pam 开发包。

  • RHEL/CentOS

https://pkgs.org/search/?q=pam-devel 中下载 pam-devel,或者运行 yum

sudo yum install pam-devel
  • Ubuntu/Debian

https://pkgs.org/search/?q=libpam0g-dev 中下载 libpam0g-dev,或者运行 apt-get

sudo apt-get install libpam0g-dev
最后更新 2020-07-29
MIP.watch('startSearch', function (newVal, oldVal) { if(newVal) { var keyword = MIP.getData('keyword'); console.log(keyword); // 替换当前历史记录,新增 MIP.viewer.open('/s/' + keyword, {replace: true}); setTimeout(function () { MIP.setData({startSearch: false}) }, 1000); } }); MIP.watch('goHome', function (newVal, oldVal) { MIP.viewer.open('/', {replace: false}); });