Forum How do I...?

Install Prince on Ubuntu 16.04 LTS

nico

I am trying to install Prince on Ubuntu 16.04 LTS, but I couldn’t find a way to install libgif4. Any idea how to solve this?

Here is what I tried so far:

$ sudo apt-get update
$ sudo apt-get install aptitude
$ sudo aptitude install gdebi
$ wget http://www.princexml.com/download/prince_10r7-1_ubuntu14.04_amd64.deb

$ sudo gdebi prince_10r7-1_ubuntu14.04_amd64.deb
Reading package lists... Done
Building dependency tree        
Reading state information... Done
Reading state information... Done
This package is uninstallable
Dependency is not satisfiable: libgif4 (>= 4.1.4)

$ sudo apt-get install libgif4
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package libgif4


mikeday
We now have Prince latest builds available for Ubuntu 16.04.
nico
It works, many thanks!
Burstaholic
So, how about that Ubuntu 16.10?
mikeday
Have you tried the generic Linux packages?
Burstaholic
Yes, they're still dynamically linked, so I get
/usr/local/lib/prince/bin/prince: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory
Burstaholic
I tried creating a symbolic link to libpng16.so.16 that 16.10 ships with, but it still complains:

/usr/local/lib/prince/bin/prince: /usr/lib/x86_64-linux-gnu/libpng12.so.0: version `PNG12_0' not found (required by /usr/local/lib/prince/bin/prince)
mikeday
Can you install the libpng12 package? It should not interfere with libpng16.
Burstaholic
OK, I was able to download the libpng12 package from the Ubuntu package website for Xenial, and that is working fine. Thanks!
marlonob
Sorry to revive this thread, but I just want to know: Is there a date for binaries for 18.04? I can’t get it to work…

Edit: Also, have you thought about distributing Prince as an AppImage? I think this could be very helpful for this sort of things.

Edited by marlonob

mikeday
We will provide Prince packages for Ubuntu 18.04 shortly.
mikeday
Latest builds for Ubuntu 18.04 are available now!
marlonob
Thanks!