title: Gcc collect2: fatal error: cannot find 'ld'
body: <p>I'm going through the tutorial on making an OS on <a href="http://wiki.osdev.org/Bare_Bones" rel="noreferrer">http://wiki.osdev.org/Bare_Bones</a>. When I try to link boot.o and kernel.o using this command: <strong>i686-elf-gcc -T linker.ld -o myos.bin -ffreestanding -O2 -nostdlib boot.o kernel.o -lgcc</strong> , I just get this error:</p>
  
  <pre><code>collect2: fatal error: cannot find 'ld'
  compilation terminated.
  </code></pre>
  
  <p>I just installed fresh Ubuntu 15.10 that with <em>gcc-5.2.1</em> and <em>binutils-2.25.1</em> .
  I have searched the internet for answers but nothing helped.</p>