version `ZLIB_1.2.9' not found (required by /usr/lib/x86_64-linux-gnu/libpng16.so.16)
阿新 • • 發佈:2018-12-16
參考:
安裝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:
[email protected]:/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