Forum How do I...?

Setting Prince in new server box

sbhutad2
Hi Team,

We are currently using Prince in our applications in prod and non-prod environments. We are configuring new non-prod environments for these applications and facing issue with Prince configuration.

We copied 'prince' folder from existing configured box into this new box. On completing the application setup and running our application in this new environment, we get the error as below:

java.io.IOException: Broken pipe
at java.io.FileOutputStream.writeBytes(Native Method)
at java.io.FileOutputStream.write(FileOutputStream.java:326)
at java.io.BufferedOutputStream.write(BufferedOutputStream.java:122)
at com.princexml.Util.copyInputToOutput(Util.java:52)
at com.princexml.Prince.convert(Prince.java:571)

As per one of the prince forum answer (https://www.princexml.com/forum/topic/3238/http-status-500-broken-pipe), we tried to run the prince executable as below and found the below issue.

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

Could you please help us with the issue. Also let us know the steps to configure/install Prince in new servers from scratch.

Thanks,
Suraj Bhutada

mikeday
Please check the Linux distribution you are running on your server and install an appropriate Prince package.