Why does the command-line tool say "No such file or directory" when I try to run it?

Q:

I’m on a 64-bit linux machine. When I try to run the 32-bit version of DocPub, it says “No such file or directory”. What’s going on?

A:

Based on your output, it sounds like your 64-bit system lacks the additional libraries required to run 32-bit executables.

Setting these libraries up is a task that will vary by distribution. Here are some links for setting these libraries up on Debian and Ubuntu distributions:

http://unix.stackexchange.com/questions/83773/running-a-32-bit-application-in-debian-wheezy-64-bits-missing-libraries

http://askubuntu.com/questions/454253/how-to-run-32-bit-app-in-ubuntu-64-bit

Alternatively, you could simply run the 32-bit executable on a 32-bit architecture.