ColdFusion 11 – PDF Service prerequisites on Linux

If you are planning to use PDF services on a Linux box with ColdFusion 11, you would need a set of packages to be preinstalled, and would also need to import a set of fonts onto your machine. Though this is called out specifically in the Adobe Live Cycle Documentation, I decided to post a set of out-of-the-box commands that get these prerequisites in place without hassles. These commands use the yum or apt-get package managers to install prerequisites and have been tested on RHEL 6+ and Ubuntu 13.10+.


RedHat, and everything YUM powered,
Execute the below commands from a terminal, or run it from a script file on an RHEL, or any machine with valid yum configurations.

yum -y install glibc.i686 zlib.i686 libX11.i686 ia32-libs expat.i686 freetype.i686 nss-softokn.i686 libxcb.i686 libXau.i686 libXext.i686 libSM.i686 libXrandr.i686 libXrender.i686 libXinerama.i686
yum -y groupinstall "X Window System"
wget http://cgit.freedesktop.org/xorg/font/ibm-type1/snapshot/font-ibm-type1-1.0.3.tar.gz
tar -zxvf font-ibm-type1-1.0.3.tar.gz
cd font-ibm-type1-1.0.3
mv * /usr/share/fonts/
cd ..
rm -rf font-ibm-type1-1.0.3
rm -rf font-ibm-type1-1.0.3.tar.gz



Ubuntu
Execute the below commands from a terminal, or run it from a script file on an Ubuntu with apt-get repositories configured.

apt-get -y install glibc-2.* lib32z1 lib32ncurses5 lib32bz2-1.0 lib32z1-dev lib32bz2-dev zlib1g libx11* lib32z1 lib32ncurses5 lib32bz2-1.0 libexpat1  libexpat1:i386 libfreetype6:i386 x-window-* lib32nss-mdns libxcb1-dev:i386 libxcb1-dev libxext6 libxext6:i386 libsm6 libsm6:i386 libxrandr2 libxrandr2:i386 libxrender1 libxrender1:i386 libxinerama1 libxinerama1:i386
wget http://cgit.freedesktop.org/xorg/font/ibm-type1/snapshot/font-ibm-type1-1.0.3.tar.gz
tar -zxvf font-ibm-type1-1.0.3.tar.gz
cd font-ibm-type1-1.0.3
mv * /usr/share/fonts/
cd ..
rm -rf font-ibm-type1-1.0.3
rm -rf font-ibm-type1-1.0.3.tar.gz



Hope this helps!

ColdFusion 11 - Manually remove connector configuration
Fixing the Null Pointer Exception on ColdFusion



2 Responses to “ColdFusion 11 – PDF Service prerequisites on Linux”

  1. KnuBew

    Thanks for your posting. It helped me a lot.

    I’m using “Debian 7 (wheezy) 64 Bit” Linux.

    To get your “apt-get -y install glibc-2.* …” string working, I had to add the i386 architecture to the Debian packet manager with the following commands, otherwise the Debian packet manager cannot find the “:i386” packages:
    dpkg --add-architecture i386
    apt-get update

    By the way, the “apt-get update” command is required after adding the i386 architecture to the Debian packet manager

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>