Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

/lib/x86_64-linux-gnu/libz.so.1: version `ZLIB_1.2.9' not found

Tags:

eclipse

opencv

I'm new to linux and using Eclipse Oxygen.2 Release 4.7.2 on Ubuntu 16.04

I'm getting the error:

/usr/lib/opencv-2.4.13.5/build/lib/libopencv_java2413.so: /lib/x86_64-linux-gnu/libz.so.1: version `ZLIB_1.2.9' not found (required by /home/mel3/anaconda/lib/libpng16.so.16)

I've tried upgrading and reloading and not sure if there is a path error or what going on. Help much appreciated

like image 906
Mel3 Avatar asked Aug 31 '25 18:08

Mel3


2 Answers

The accepted answer didn't work for me, but following here did:

https://ubuntuforums.org/showthread.php?t=2375927

Repeating the answer:

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
like image 159
Alex Kaszynski Avatar answered Sep 03 '25 20:09

Alex Kaszynski


Download Zlib 1.2.9 Then run those commands

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

for details visit this link

like image 41
Kamrul hassan Avatar answered Sep 03 '25 19:09

Kamrul hassan