【转载】linux系统:共享库问题之如version `ZLIB_1.2.9‘ not found

  1. 错误提示:

Gtk-WARNING **: Error loading image ‘file:///usr/share/themes/Ambiance/gtk-3.0/assets/button-toolbar-active-focused.png’: Unable to load image-loading module: /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-png.so: /tmp/_MEIMlBDDO/libz.so.1: version `ZLIB_1.2.9’ not found (required by /usr/lib/x86_64-linux-gnu/libpng16.so.16)

  1. 解决方法

下载 zlib-1.2.9.tar.gz 官网http://www.zlib.net/fossils/ 到linux机器上,然后进入压缩包文件路径并执行以下命令:

(1)安装相关依赖环境

sudo apt-get update

(2)解压编译zlib

tar -xvf zlib-1.2.9.tar.gz
cd zlib-1.2.9
sudo -s # 进入root用户
./configure

make

make install

(3)通过软连接将zlib连接到共享库路径:

eg: /tmp/_MEIMlBDDO/libz.so.1: version `ZLIB_1.2.9’ not found

软链接:

ln -s -f /usr/local/lib/libz.so.1.2.9 /tmp/_MEIMlBDDO/libz.so.1

左边是下载的ZLIB_1.2.9的本地解压路径,右边根据报错信息修改软连接的地址

【转载】https://www.cnblogs.com/sugh/p/16743689.html

你可能感兴趣的:(linux,运维,服务器)