Forum How do I...?

Install PrinceXML 8.1 on CentOS 6

asaaki
I'm installing PrinceXML on CentOS 6, so I downloaded prince-8.1-4.centos60.x86_64.rpm.

However, when I ran
rpm -ivh prince-8.1-4.centos60.x86_64.rpm

it told me that the following were missing:

libgif.so.4
libungif.so.4


I got the RPM for libgif.so.4 but somehow couldn't find the former, but prince got installed anyway without any complaints. However, if I try it on the command line, I'm getting errors as below:
prince: internal error: no available fonts


I tried
prince http://www.google.com output.pdf


and got the following errors:

prince: http://www.google.com:10: error: Tag nobr invalid
prince: http://www.google.com:10: error: htmlParseEntityRef: expecting ';'
prince: http://www.google.com:10: error: htmlParseEntityRef: expecting ';'
prince: http://www.google.com:10: error: htmlParseEntityRef: expecting ';'
prince: http://www.google.com:10: error: htmlParseEntityRef: expecting ';'
prince: http://www.google.com:10: error: Tag nobr invalid
prince: http://www.google.com:10: error: htmlParseEntityRef: expecting ';'
prince: http://www.google.com:10: error: htmlParseEntityRef: no name
prince: http://www.google.com:10: error: htmlParseEntityRef: expecting ';'
prince: http://www.google.com:10: error: htmlParseEntityRef: no name
prince: http://www.google.com:10: error: htmlParseEntityRef: expecting ';'
prince: http://www.google.com:10: error: htmlParseEntityRef: no name
prince: http://www.google.com:10: error: htmlParseEntityRef: no name
prince: http://www.google.com:10: error: htmlParseEntityRef: no name
prince: warning: no glyphs for character U+0053, fallback to '?'
prince: internal error: no available fonts


Any help please?
mikeday
Can you install the Microsoft Core Fonts or DejaVu font packages?
asaaki
I installed the DejaVu fonts and also ran

rpmbuild -ba msttcore-fonts-2.0-5.spec


to get MS fonts. There was a problem with cabextract but I think I managed to solve that.

In any case, DeJaVu fonts were definitely installed successfully.

But I got the same errors as above when running prince.

I tried Prince with another webpage and it seemed to work without complaints. But when I checked the converted PDF file, it was empty.

I'm emailing you the files/link for this case.
emkookmer
Hey Mike,

Maybe the font packages should be added to the PriceXML package as depandancies or recommended packages.
mikeday
Right, we'll check this for the next release of Prince.