Forum How do I...?

Debian Stretch (Testing)

somebody
tl;dr; Is it possible to install Prince onto Debian Stretch (Debian 9)?

I am running Debian Stretch on my laptop and am unable to get Prince working.

If you attempt to install the ".deb" installer for Jessie onto Stretch you get the following errors:

$ sudo dpkg -i prince_11-1_debian8.0_amd64.deb 
[sudo] password for chad:
Selecting previously unselected package prince.
(Reading database ... 220138 files and directories currently installed.)
Preparing to unpack prince_11-1_debian8.0_amd64.deb ...
Unpacking prince (11-1) ...
dpkg: dependency problems prevent configuration of prince:
 prince depends on libgif4 (>= 4.1.4); however:
  Package libgif4 is not installed.
 prince depends on libpng12-0 (>= 1.2.13-4); however:
  Package libpng12-0 is not installed.
 prince depends on libssl1.0.0 (>= 1.0.0); however:
  Package libssl1.0.0 is not installed.

dpkg: error processing package prince (--install):
 dependency problems - leaving unconfigured
Processing triggers for man-db (2.7.6.1-2) ...
Errors were encountered while processing:


Because I am a version ahead of Jessie (Debian 8) I have newer versions of each of those applications:

- libgif7
- libpng16
- libssl1.0.2

If I install from the tar installer, it appears to work. However the executable doesn't work:

$ prince
/usr/local/lib/prince/bin/prince: error while loading shared libraries: libgif.so.4: cannot open shared object file: No such file or directory


I tried creating symbolic links from libgif.so.7 to libgif.so.4 (and each of the other pieces of software), but then I run into the following error:

$ prince
/usr/local/lib/prince/bin/prince: /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0: version `OPENSSL_1.0.0' not found (required by /usr/local/lib/prince/bin/prince)
/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)


Is it possible to get Prince installed on Debian 9?

Is there a release date published for Debian 9?
mikeday
How about the Ubuntu 16.04 package?
somebody
Same response

$ sudo dpkg -i prince_11-1_ubuntu16.04_amd64.deb 
(Reading database ... 220402 files and directories currently installed.)
Preparing to unpack prince_11-1_ubuntu16.04_amd64.deb ...
Unpacking prince (11-1) over (11-1) ...
dpkg: dependency problems prevent configuration of prince:
 prince depends on libfontconfig1 (>= 2.11.94); however:
  Version of libfontconfig1:amd64 on system is 2.11.0-6.7.
 prince depends on libjpeg8 (>= 8c); however:
  Package libjpeg8 is not installed.
 prince depends on libpng12-0 (>= 1.2.13-4); however:
  Package libpng12-0 is not installed.
 prince depends on libssl1.0.0 (>= 1.0.0); however:
  Package libssl1.0.0 is not installed.

dpkg: error processing package prince (--install):
 dependency problems - leaving unconfigured
Processing triggers for man-db (2.7.6.1-2) ...
Errors were encountered while processing:
 prince
mikeday
Looks like we will need to build some more packages. :)
schmudde
What is the status on this? I'm currently getting

/usr/local/lib/prince/bin/prince: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory

when I try to run install.sh from prince-11.1-ubuntu16.04-amd64.tar.gz.

I'm on Ubuntu 16.04.

Thanks!

/Schmüdde
mikeday
Can you install the libpng12 package? (If you install the Prince DEB package it should prompt you for all the necessary dependencies).
schmudde
I have libpng16 installed, it comes automatically with Ubuntu 16. Are you suggesting I have two packages installed? I was worried about conflicts.
mikeday
libpng12 and libpng16 should not conflict with each other, they are actually separate packages, not two versions of the same package.
schmudde
I understand now, thanks.

If anyone else ends up in a similar position, I downloaded libpng12 here: http://packages.ubuntu.com/xenial/libpng12-0.

Works perfectly!
rfpronk
Debian 9.0 Stretch has been released a little while ago.
Could you please include this version in your packaging?
mikeday
Sure, we will take a look.
aswen
@mikeday: Is it possible to give an estimated date you will provide Stretch compattible packages? We need them as quickly as possible.

Thanks in advance for your information.
mikeday
They are available now.
rfpronk
Great! Thanks @mikeday
bynan
@mikeday: I'm still having this issue. Below is my Dockerfile. It installs everything just fine, but when I run prince, I get:

root@d6d0ccef2f08:/# which prince
/usr/local/bin/prince
root@d6d0ccef2f08:/# prince
/usr/local/lib/prince/bin/prince: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory

Dockerfile:

FROM python:3.7

# Update system
RUN apt-get update \
&& apt-get install -y \
wget \
sudo \
gdebi-core

# Install PrinceXML
ENV PRINCE=prince_12.2-1_debian9.1_amd64.deb
RUN wget https://www.princexml.com/download/$PRINCE \
&& sudo gdebi --non-interactive $PRINCE
mikeday
The Debian package installs Prince in /usr, not /usr/local, could there be another installation already?
bynan
@mikeday - Hmmm. I guess so?

root@2cad5de6e903:/# which prince
/usr/local/bin/prince
root@2cad5de6e903:/# find / -name prince
/usr/local/bin/prince
/usr/local/lib/prince
/usr/local/lib/prince/bin/prince
/usr/lib/prince
/usr/lib/prince/bin/prince
/usr/share/doc/prince
/usr/bin/prince


if i do /usr/bin/prince it works. i have no idea where the /usr/local/bin/prince came from? all i did was build the docker container from the dockerfile i posted.
bynan
@mikeday - must have been something to do with my docker images. i removed them and started from scratch and now it's working fine

root@f562eb20a9da:/# which prince
/usr/bin/prince
root@f562eb20a9da:/# find / -name prince
/usr/lib/prince
/usr/lib/prince/bin/prince
/usr/share/doc/prince
/usr/bin/prince


sorry for the confusion. thanks for the quick reply.