Forum How do I...?

Install Prince on Centos 6.0

jstumpf
I have downloaded the following version of file.

rpm -ivh prince-9.0-5.centos60.x86_64.rpm
error: Failed dependencies:
libgif.so.4()(64bit) is needed by prince-9.0-5.x86_64
libungif.so.4()(64bit) is needed by prince-9.0-5.x86_64

It will not install this is on a dedicated server so we have root access, any ideas.
mikeday
"yum install giflib" should do the trick.
jstumpf
thank you that did the trick.
jstumpf
new error:

root@server.pharmakonsolutions.com [logs]# prince prod_pharmakon.log -o log.pdf
/usr/local/lib/prince/bin/prince: error while loading shared libraries: libtiff.so.4: cannot open shared object file: No such file or directory
root@server.pharmakonsolutions.com [logs]#

I also tried "yum install libtiff
root@server.pharmakonsolutions.com [logs]# yum install libtiff
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
Setting up Install Process
Package libtiff-3.9.4-10.el6_5.x86_64 already installed and latest version
Nothing to do

mikeday
Is this after installing the Prince RPM package for CentOS 6? On our system it links to libtiff.so.3, not libtiff.so.4.
jstumpf
yes the prince package said it installed, its when i tried to create a pdf from the command line i received the above error.

thank you for your replies.
mikeday
That is puzzling. If you run "rpm -ql libtiff | grep lib" what does it return?

On our system there is "/usr/lib64/libtiff.so.3"
jstumpf
[pharmak6@server ~]$ rpm -ql libtiff | grep lib
/usr/lib64/libtiff.so.3
/usr/lib64/libtiff.so.3.9.4
/usr/lib64/libtiffxx.so.3
/usr/lib64/libtiffxx.so.3.9.4
/usr/share/doc/libtiff-3.9.4
/usr/share/doc/libtiff-3.9.4/COPYRIGHT
/usr/share/doc/libtiff-3.9.4/README
/usr/share/doc/libtiff-3.9.4/RELEASE-DATE
/usr/share/doc/libtiff-3.9.4/VERSION
[pharmak6@server ~]$
mikeday
Thanks, that looks right. If you run "which prince" does it return /usr/bin/prince? I'm wondering if there could be more than one Prince package installed.

Last resort is to check the output of "ldd /usr/lib/prince/bin/prince" which should show all the shared libraries it is trying to load.
jstumpf
which prince

/usr/local/bin/prince
mikeday
Okay, so it's picking up another installation of Prince ahead of the new RPM installation, and that's the problem. You can remove the old installation by deleting /usr/local/bin/prince and removing this directory: /usr/local/lib/prince.
jstumpf
i am using version 9.0

root@server.pharmakonsolutions.com [logs]# ldd /usr/lib/prince/bin/prince
linux-vdso.so.1 => (0x00007fff6e07d000)
libxml2.so.2 => /usr/lib64/libxml2.so.2 (0x0000003af2a00000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x0000003aefe00000)
libpng12.so.0 => /usr/lib64/libpng12.so.0 (0x0000003af6600000)
libtiff.so.3 => /usr/lib64/libtiff.so.3 (0x0000003af3a00000)
libjpeg.so.62 => /usr/lib64/libjpeg.so.62 (0x0000003af1600000)
libz.so.1 => /lib64/libz.so.1 (0x0000003af0e00000)
libungif.so.4 => /usr/lib64/libungif.so.4 (0x00007f329e2f8000)
libcurl.so.4 => /usr/lib64/libcurl.so.4 (0x0000003b9ce00000)
librt.so.1 => /lib64/librt.so.1 (0x0000003af0600000)
libssl.so.10 => /usr/lib64/libssl.so.10 (0x0000003b9ca00000)
libcrypto.so.10 => /usr/lib64/libcrypto.so.10 (0x0000003b9c600000)
libdl.so.2 => /lib64/libdl.so.2 (0x0000003af0200000)
libfontconfig.so.1 => /usr/lib64/libfontconfig.so.1 (0x0000003af4e00000)
libfreetype.so.6 => /usr/lib64/libfreetype.so.6 (0x0000003af5200000)
libm.so.6 => /lib64/libm.so.6 (0x0000003af0a00000)
libc.so.6 => /lib64/libc.so.6 (0x0000003aefa00000)
libgif.so.4 => /usr/lib64/libgif.so.4 (0x00007f329e0eb000)
/lib64/ld-linux-x86-64.so.2 (0x0000003aef600000)
libidn.so.11 => /lib64/libidn.so.11 (0x0000003af7a00000)
libldap-2.4.so.2 => /lib64/libldap-2.4.so.2 (0x0000003df4400000)
libgssapi_krb5.so.2 => /lib64/libgssapi_krb5.so.2 (0x0000003af4600000)
libkrb5.so.3 => /lib64/libkrb5.so.3 (0x0000003af3600000)
libk5crypto.so.3 => /lib64/libk5crypto.so.3 (0x0000003af4200000)
libcom_err.so.2 => /lib64/libcom_err.so.2 (0x0000003af2e00000)
libssl3.so => /usr/lib64/libssl3.so (0x0000003df3800000)
libsmime3.so => /usr/lib64/libsmime3.so (0x0000003df3c00000)
libnss3.so => /usr/lib64/libnss3.so (0x0000003df3400000)
libnssutil3.so => /usr/lib64/libnssutil3.so (0x0000003df3000000)
libplds4.so => /lib64/libplds4.so (0x0000003af5a00000)
libplc4.so => /lib64/libplc4.so (0x0000003af3e00000)
libnspr4.so => /lib64/libnspr4.so (0x0000003af5600000)
libssh2.so.1 => /usr/lib64/libssh2.so.1 (0x0000003b9d200000)
libexpat.so.1 => /lib64/libexpat.so.1 (0x00007f329debe000)
libSM.so.6 => /usr/lib64/libSM.so.6 (0x00007f329dcb6000)
libICE.so.6 => /usr/lib64/libICE.so.6 (0x00007f329da99000)
libX11.so.6 => /usr/lib64/libX11.so.6 (0x0000003af6200000)
liblber-2.4.so.2 => /lib64/liblber-2.4.so.2 (0x0000003df4800000)
libresolv.so.2 => /lib64/libresolv.so.2 (0x0000003af1a00000)
libsasl2.so.2 => /usr/lib64/libsasl2.so.2 (0x0000003df4000000)
libkrb5support.so.0 => /lib64/libkrb5support.so.0 (0x0000003af4a00000)
libkeyutils.so.1 => /lib64/libkeyutils.so.1 (0x0000003af3200000)
libuuid.so.1 => /lib64/libuuid.so.1 (0x00007f329d893000)
libxcb.so.1 => /usr/lib64/libxcb.so.1 (0x0000003af6a00000)
libcrypt.so.1 => /lib64/libcrypt.so.1 (0x0000003df2c00000)
libselinux.so.1 => /lib64/libselinux.so.1 (0x0000003af1200000)
libXau.so.6 => /usr/lib64/libXau.so.6 (0x0000003af5e00000)
libfreebl3.so => /lib64/libfreebl3.so (0x0000003df2800000)
jstumpf
Could this be messing it up?

/lib64/ld-linux-x86-64.so.2 (0x0000003aef600000) from the list above?
mikeday
Or if you don't want to remove the other installation, run Prince 9 by running /usr/bin/prince explicitly.
jstumpf
looks like its working now its giving me conversion errors
jstumpf
new error

[pharmak6@server xmlarchive]$ prince 201410140000003.XML 201410140000003.PDF
prince: internal error: no available fonts
[pharmak6@server xmlarchive]$

jstumpf
I also tried it with this parameter

[pharmak6@server xmlarchive]$ prince --no-embed-fonts 201410140000003.XML 201410140000003.PDF
prince: internal error: no available fonts
[pharmak6@server xmlarchive]$
mikeday
Great, this is progress! :)

Now you need to install some fonts. The easiest way to do that is the Microsoft Core Fonts package described here:
yum install curl cabextract xorg-x11-font-utils fontconfig

rpm -i https://downloads.sourceforge.net/project/mscorefonts2/rpms/msttcore-fonts-installer-2.6-1.noarch.rpm
jstumpf
Wow,

First let me compliment you on your service, and your knowlege. This will not be the last post you assist with as i am having header and footer issues in my dev environment.

But I am working on the machine so thank you very much. I will recommend this product and service.

Jeff
mikeday
Thank you, just happy to hear it is working. :)