首页  编辑  

glibc-2.25 找不到的解决方法

Tags: /计算机文档/Linux & Unix/   Date Created:
安装OpenVPN Access Server报错:
sudo dpkg -i openvpn-as-2.7.3-Ubuntu18.amd_64.deb 
(正在读取数据库 ... 系统当前共安装有 216854 个文件和目录。)
正准备解包 openvpn-as-2.7.3-Ubuntu18.amd_64.deb  ...
Upgrade detected (debian)...
正在将 openvpn-as (2.7.3-05bc07c0-Ubuntu18) 解包到 (2.7.3-05bc07c0-Ubuntu18) 上 ...
正在设置 openvpn-as (2.7.3-05bc07c0-Ubuntu18) ...
Automatic configuration failed, see /usr/local/openvpn_as/init.log
You can configure manually using the /usr/local/openvpn_as/bin/ovpn-init tool.
python: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.25' not found (required by /usr/local/openvpn_as/lib/libpython2.7.so.1.0)
Beginning with OpenVPN AS 2.6.0 compression is disabled by default and on upgrades as security patch.
python: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.25' not found (required by /usr/local/openvpn_as/lib/libpython2.7.so.1.0)
OpenVPN比较恶心(dirty),故意找了个2.25,在https://www.rpmfind.net/linux/rpm2html/search.php?query=glibc 都找不到库的版本来编译,就是为了推销他们的OpenVPN云主机!~

解决方法:
mkdir abc
cd abc
wget http://ftp.vim.org/ftp/gnu/glibc/glibc-2.25.tar.gz
tar -xf glibc-2.25.tar.gz
sudo apt install gawk
glibc-2.25/configure --prefix=/lib/x86_64-linux-gnu
make
make install