title: How to install 32 bit glibc on 64 bit ubuntu
body: <p>I am trying to learn the C Calling conventions in assembly language. To do so, I made a simple program using the <code>puts</code> function from the C standard library.   </p>
  
  <p>I assembled and linked the program with the following commands :-  </p>
  
  <p><code>nasm -f elf file.asm</code>
  <code>gcc -m32 file.asm -o file</code></p>
  
  <p>The nasm produces the right object file but when running the gcc to link the object files, I am getting error.<br>
  Looking at the error I have figured it out that I don't have the 32 bit version of glibc on my system. How can I install it.     I already have installed <a href="http://packages.ubuntu.com/precise/libc6-i386" rel="noreferrer">this</a> package installed.</p>
  
  <p>I have 64 bit ubuntu 12.04 as my OS.  </p>
  
  <p>EDIT :- I have installed the following packages, but the problem is still not solved :-</p>
  
  <p>1)ia32-libs<br>
  2) libc6-i386</p>