32-bit compilers or executable do not run as is on 64-bit OS. You need to install additional packages to run 32-bit executable on 64-bit OS.
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386
Reference:
http://askubuntu.com/questions/454253/how-to-run-32-bit-app-in-ubuntu-64-bit