How to run PDFTK on AWS AMI Linux.

The problem is the AWS AMI Linux (amzn-ami-hvm-2016.09.1.20170119-x86_64-gp2  – ami-80086dec) doesn’t provides the libgcj, so you can’t compile PDFTK.

So you can compile it in some old OS and just manually copy the binary files to run the program.

Follow the files I compiled on a old RedHat release:

You just need to copy the compiled files to the following locations:

lrwxrwxrwx 1 root root   27 Feb 14 14:39 /usr/lib64/libgcj.so.10 -> /usr/lib64/libgcj.so.10.0.0
-rwxr-xr-x 1 root root  47M Feb 14 14:38 /usr/lib64/libgcj.so.10.0.0
-rw-r--r-- 1 root root 7.5K Feb 14 14:40 /usr/share/man/man1/pdftk.1.gz
-rwxr-xr-x 1 root root 3.9M Feb 14 14:37 /usr/bin/pdftk

Click here to download the files.

Facebooktwitterredditpinterestlinkedinmail