Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to run a pre-compiled program from

The pages states that:

The executables only link in standard (OpenGL, libtiff, libjpeg, etc.) Linux libraries, and link openglut statically, which may cause failures on some systems. The programs are compiled at medium optimization, for a generic IA32 processor, on a Red Hat EL4 system. They should run on Red Hat (>=9) and Fedora (>=3) systems just fine, and hopefully other similar distributions as well.

A standard Ubuntu 12.10 distribution is unable to run the program with

./PackLSD.poly.static.x: error while loading shared libraries: cannot open shared object file: No such file or directory

This suggests that I should install the dev versions of libtiff, but neither

sudo apt-get install libtiff4-dev
sudo apt-get install libtiff5-dev

seem to help. Am I out of luck getting this program to work without help from the author?

Edit: As requested. The output to sudo dpkg -L libtiff4 libtiff5


share|improve this question
possible duplicate of How do I install – gertvdijk May 6 '13 at 16:13

You need the library, not the source I believe.

Please do this

sudo apt-get install libtiff4 libtiff5


sudo ln -s /usr/lib/x86_64-linux-gnu/ /usr/lib/

This should fix your problem

share|improve this answer
Thanks for the help, but this still produces the same error. Does it work on your machine? – Hooked May 6 '13 at 15:55
Can you please post the output of sudo dpkg -L libtiff4 libtiff5 – thefourtheye May 6 '13 at 16:10
Added to output the post. – Hooked May 6 '13 at 16:13
Can you please post the output of ldd PackLSD.poly.static.x also – thefourtheye May 6 '13 at 16:15
Creating the link now fails with ./PackLSD.poly.static.x: error while loading shared libraries: wrong ELF class: ELFCLASS64. This is true even when I follow the instructions for the 64-bit version ln -s /usr/lib/x86_64-linux-gnu/ /usr/lib/ – Hooked May 6 '13 at 16:56

Your Answer


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.