I'm trying to get pdftk running on my shared hosting account (no root access). I followed the instructions here, mainly:
$ mkdir -p [my_project]/vendor/pdftk/lib [my_project]vendor/pdftk/bin
$ cd /tmp
$ git clone https://github.com/millie/pdftk-source.git
$ cd pdftk-source
$ tar xzvf pdftk.tar.gz
$ mv bin/pdftk [my_project]/vendor/pdftk/bin/
$ mv lib/libgcj.so.12 [my_project]/vendor/pdftk/lib/
$ cd [my_project]
You can include the binaries in your app, and then set the environment path to the
bin
folder which holds the binaries.
So, I ran those commands, and I added the bin folder to my environment path. When I try to run the pdftk command, I get pdftk: error while loading shared libraries: libgcj.so.12: cannot open shared object file: No such file or directory
I then edited (rather created) my LD_LIBRARY_PATH to the vendor/pdftk/lib folder that had the library. But it didn't help, it still can't find it.
I just want to be able to use pdftk! Any ideas?