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

Does a program compiled on Ubuntu 32 bits work on Debian 6 64 bits?

I went googling and found: "Normally a program compiled on a 32bit system works on a 64 also, but not the other way."

So the 32 bits -> 64 bits compatibility should not be a problem. What about Ubuntu -> Debian?

Best regards.

share|improve this question
up vote 0 down vote accepted

It depends. In such cases usually dependencies may be an issue. If You install x64 system, by default it loads x64 libraries. And it may lack x32 libraries. However, usually it is no problem to apt-get necessary 32 bit libs. I would reccomend to write very simple program like Hello World, compile it for x32 as You wish and try to run it on Debian x64. In my opinion this is the right point to begin.


share|improve this answer
mmmh, yes, missing librairies...indeed. Thanks a lot for your answer, really informative! – Korchkidu Mar 9 '12 at 11:06

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.