Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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 have installed Ubuntu 12.04 Desktop LTS on three Intel systems. All the three PCs are using the same kernel version (3.2.0-29-generic-pae). But I have a problem that when I compile and build my executable on one PC, it does not run on the other PCs and displays an error message "command not found". However, if the same code is rebuilt on the other PC, it runs successfully. How can I make my executable built on one PC to run on another PC with the same Ubuntu 12.04 Linux kernel?

share|improve this question
Could you post some information about how you're compiling and linking your program? – Jeremy Kerr Jan 23 '13 at 3:10
command not found smells with a bad path. – Symin Jan 23 '13 at 5:37

This sounds like it could be a problem between a 32bit and 64bit architecture.

Is the CPU you're compiling your code on the same as the other machines you're trying to run it on?

If you're compiling your code on a 32bit machine and trying to run it on a 64bit installed version of Ubuntu this could be your problem.

To install 32bit libraries, allowing you to run 32bit executables on a 64bit install:

sudo apt-get install ia32-libs

share|improve this answer

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.