Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am having trouble installing pdftk on an amzn-ami-2011.09.2.x86_64-ebs (ami-953b06e1) instance.

Since pdftk is not in the list of available packages I have tried to build it from source but failed due to a missing dependency – cgj, Java GNU Compiler, which also isn't available in the packages list.

I have already installed gcc, gcc-c++ and make besides the default packages.

share|improve this question

2 Answers 2

Running PDFtk on Amazon Linux is possible. I wrote a blog post about running PDFtk on AWS Lambda, which runs on Amazon Linux: https://lob.com/blog/aws-lambda-pdftk/.

It should be entirely possible to use the binary I compiled, along with libgcj.so to run PDFtk on an Amazon Linux EC2. The binary and shared library in this repository should work for you: https://github.com/lob/lambda-pdftk-example

share|improve this answer
    
It would be better if you included the basic steps in the answer. –  Ayan 14 hours ago

You may be out of luck: https://forums.aws.amazon.com/thread.jspa?threadID=96919

GCJ is not supported on the Amazon Linux AMI, which is why you are running into this problem.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.