version `ZLIB_1.2.9' not found (required by /usr/lib/x86_64-linux-gnu/libpng16.so.16)

参考:

https://stackoverflow.com/questions/48306849/lib-x86-64-linux-gnu-libz-so-1-version-zlib-1-2-9-not-found/51317504#51317504

 

安装edb postgresql后, 打开stackbuild报错, 窗口一闪而过

/opt/edb/as10/stackbuilderplus/bin/stackbuilderplus: /opt/edb/as10/stackbuilderplus/lib/libz.so.1:
version `ZLIB_1.2.9' not found (required by /usr/lib/x86_64-linux-gnu/libpng16.so.16)

解决办法:

tar -xvf ~/Downloads/zlib-1.2.9.tar.gz
cd zlib-1.2.9
sudo -s
./configure; make; make install
cd /lib/x86_64-linux-gnu
ln -s -f /usr/local/lib/libz.so.1.2.9/lib libz.so.1
cd ~
rm -rf zlib-1.2.9
cd /your_software/../lib/ (the directory containing libz.so.1)
mv libz.so.1 libz.so.1.old
ln -s /lib/x86_64-linux-gnu/libz.so.1

 安装后,history查看就敲了下面几行就解决了 ,注意需要用root:

root@ljl-mint:/opt/edb/as10/stackbuilderplus/lib# history
    1  ./configure
    2  make
    3  make install
    4  cd /lib/x86_64-linux-gnu/
    5  ls
    6  cd  /opt/edb/as10/stackbuilderplus/lib/
    7  mv libz.so.1 libz.so.1.old
    8  ln -s /lib/x86_64-linux-gnu/libz.so.1

 

你可能感兴趣的:(postgresql)