kiwix / kiwix-xulrunner

[ARCHIVED] Legacy Kiwix desktop solution for Windows/macOS/Linux
https://download.kiwix.org/release/kiwix-xulrunner/
GNU General Public License v3.0
111 stars 28 forks source link

Kiwix fails when using an up to date libpng #477

Closed Larivact closed 6 years ago

Larivact commented 7 years ago

XULRunner uses libpng, which depends on zlib. You are shipping XULRunner without libpng but with the old ZLIB_1.2.7.1, resulting in a conflict when you have an up to date version of libpng.

For example I am using Arch Linux with libpng 1.6.29-1 and when I try to run the Kiwix it fails:

$ ./kiwix
XPCOMGlueLoad error for file /home/larivact/kiwix/xulrunner/libxul.so:
/home/larivact/kiwix/xulrunner/libz.so.1: version `ZLIB_1.2.9' not found (required by /usr/lib/libpng16.so.16)
Couldn't load XPCOM.
stardiviner commented 7 years ago

I have the same issue.

stardiviner commented 7 years ago

@Larivact Do you have a solution to manually fix this temporary?

kelson42 commented 7 years ago

I suspect, we will have here to wait to Kiwix 2.0 for Desktop, unfortunately :(

ghost commented 7 years ago

I have the same issue too.

PharmaceuticalCobweb commented 7 years ago

I am also experiencing this same issue with Parabola GNU/Linux-libre (a derivative of Arch Linux). Currently using libpng version "1.6.30-1". I've had this issue since April too.

Missing Kiwix big time, I don't have an Internet connection very often.

PharmaceuticalCobweb commented 7 years ago

One of the latest comments on the unofficial AUR packages suggests running " sudo ln -sf /usr/lib/libz.so.1 /usr/lib/kiwix/xulrunner/libz.so.1 " as a workaround. I've tried it and it does appear to work.

Not sure if this might work with other distros but this seems to work with both Arch and Parabola.

stardiviner commented 7 years ago

@PharmaceuticalCobweb Thanks. it works.

PharmaceuticalCobweb commented 7 years ago

Glad to hear it, I've missed Kiwix so much. Make sure to thank "THS" in the comments on " https://aur.archlinux.org/packages/kiwix-bin/ ".

kelson42 commented 6 years ago

We won't fix that bug as we develop already kiwix-desktop 2.0 to be release in summer 2018. People have to live with the workaround.