Current time: 05-29-2015, 01:11 AM Hello There, Guest! (LoginRegister)

Post Reply 
pdftk? possible at all on DH?
08-27-2011, 07:03 PM (This post was last modified: 08-27-2011 07:04 PM by mozgras.)
Post: #11
RE: pdftk? possible at all on DH?
YES Shadow700! Thank you, thank you, thank you!!
Find all posts by this user
Quote this message in a reply
09-05-2011, 02:49 PM
Post: #12
RE: pdftk? possible at all on DH?
So once you have installed it like that shadow700, then what do you do to make it run?

John
Find all posts by this user
Quote this message in a reply
04-19-2012, 12:39 PM
Post: #13
RE: pdftk? possible at all on DH?
For future reference, here is an updated script for installing pdftk on dreamhost shared hosting (assuming that Dreamhost is still running Debian 5.0.9 (lenny)

Code:
mkdir pdftk
cd pdftk
wget 'http://archive.debian.org/debian/pool/main/p/pdftk/pdftk_1.41-3_i386.deb'
wget 'http://archive.debian.org/debian/pool/main/g/gcj-4.2/libgcj8-1_4.2.4-4_i386.deb'
wget 'http://backports.mithril-linux.org/pool/main/g/gcc-4.3/libstdc++6-4.3-dev_4.3.4-6~bpo50+1_i386.deb'
ar p pdftk_1.41-3_i386.deb data.tar.gz | tar zx
ar p libgcj8-1_4.2.4-4_i386.deb data.tar.gz | tar zx
ar p libstdc++6-4.3-dev_4.3.4-6~bpo50+1_i386.deb data.tar.gz | tar zx
mkdir ~/bin
mkdir ~/lib
cp -pr usr/bin/* ~/bin
cp -pr usr/lib/* ~/lib
mv ~/bin/pdftk ~/bin/pdftk.target
echo '#!/bin/bash' >> ~/bin/pdftk
echo "" >> ~/bin/pdftk
echo 'export PATH=~/bin:$PATH;' >> ~/bin/pdftk
echo 'export LD_LIBRARY_PATH=~/lib:/usr/local/lib:$LD_LIBRARY_PATH;' >> ~/bin/pdftk
echo "" >> ~/bin/pdftk
echo '~/bin/pdftk.target "$@"' >> ~/bin/pdftk
chmod +x ~/bin/pdftk
cd ..
rm -rf pdftk

to use pdftk - you can use passthrough or exec - the path to pdftk needs to be "~/bin/pdftk"

I will not be checking back or responding to PM re support for this script
Find all posts by this user
Quote this message in a reply
10-15-2014, 04:35 PM
Post: #14
RE: pdftk? possible at all on DH?
With the update to the Dreamhost servers, it looks like gone to 64 bit, and my pdftk broke. Here is the modified code I used to get it working, using the latest stable releases. Note that libstdc++ is not required, which is cool since that link is broken anyway.
Code:
cd ~
rm -rf bin
rm -rf lib
rm -rf pdftk

mkdir pdftk
cd pdftk
wget 'http://ftp.us.debian.org/debian/pool/main/p/pdftk/pdftk_1.44-7_amd64.deb'
wget 'http://http.us.debian.org/debian/pool/main/g/gcj-4.6/libgcj12_4.6.3-1_amd64.deb'

ar p pdftk_1.44-7_amd64.deb data.tar.gz | tar zx
ar p libgcj12_4.6.3-1_amd64.deb data.tar.gz | tar zx

mkdir ~/bin
mkdir ~/lib
cp -pr usr/bin/* ~/bin
cp -pr usr/lib/* ~/lib
mv ~/bin/pdftk ~/bin/pdftk.target
echo '#!/bin/bash' >> ~/bin/pdftk
echo "" >> ~/bin/pdftk
echo 'export PATH=~/bin:$PATH;' >> ~/bin/pdftk
echo 'export LD_LIBRARY_PATH=~/lib:/usr/local/lib:$LD_LIBRARY_PATH;' >> ~/bin/pdftk
echo "" >> ~/bin/pdftk
echo '~/bin/pdftk.target "$@"' >> ~/bin/pdftk
chmod +x ~/bin/pdftk
cd ..
rm -rf pdftk
[/code]
Find all posts by this user
Quote this message in a reply
10-15-2014, 07:24 PM
Post: #15
RE: pdftk? possible at all on DH?
when i try your suggestion, everything installs fine but i get the following error when running pdftk from the shell

/home/XXXX/bin/pdftk.target: error while loading shared libraries: libgcj.so.12: cannot open shared object file: No such file or directory
Find all posts by this user
Quote this message in a reply
10-16-2014, 10:57 AM
Post: #16
RE: pdftk? possible at all on DH?
(10-15-2014 07:24 PM)mlittle Wrote:  when i try your suggestion, everything installs fine but i get the following error when running pdftk from the shell

/home/XXXX/bin/pdftk.target: error while loading shared libraries: libgcj.so.12: cannot open shared object file: No such file or directory

Make sure these files are in /home/XXXX/lib:
libgcj-tools.so.12.0.0
libgcj.so.12.0.0
libgij.so.12.0.0
libgcj-tools.so.12
libgcj.so.12
libgij.so.12
Find all posts by this user
Quote this message in a reply
10-20-2014, 08:20 PM
Post: #17
RE: pdftk? possible at all on DH?
Thanks! That fixed the issue

(10-16-2014 10:57 AM)zoomzum Wrote:  Make sure these files are in /home/XXXX/lib:
libgcj-tools.so.12.0.0
libgcj.so.12.0.0
libgij.so.12.0.0
libgcj-tools.so.12
libgcj.so.12
libgij.so.12
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: