title: QEMU erro and permission denied
body: <p>I want to run mit's jos on my Ubuntu virtual machine, but I got some problems when I run "make qemu". Here is the result:</p>
  
  <pre><code>root@ubuntu:/home/gwaan/joslab# make 
  + as kern/entry.S
  + cc kern/entrypgdir.c
  + cc kern/init.c
  + cc kern/console.c
  + cc kern/monitor.c
  + cc kern/printf.c
  + cc kern/kdebug.c
  + cc lib/printfmt.c
  + cc lib/readline.c
  + cc lib/string.c
  + ld obj/kern/kernel
  + as boot/boot.S
  + cc -Os boot/main.c
  + ld boot/boot
  boot block is 380 bytes (max 510)
  + mk obj/kern/kernel.img
  root@ubuntu:/home/gwaan/joslab# make qemu
  sed "s/localhost:1234/localhost:25000/" &lt; .gdbrc.tmpl &gt; .gdbrc
  /bin/sh: 1: /usr/local: Permission denied
  '/usr/local' -hda obj/kern/kernel.img -serial mon:stdio -gdb tcp::25000  
  make: execvp: /usr/local: Permission denied
  make: *** [qemu] Error 127
  </code></pre>
  
  <p>I tried "chmod -R 777 /usr/local" but I still got "/usr/local: Permission denied"</p>
  
  <p>QEMU was installed in "/usr/local"</p>
  
  <p>gcc/g++ is the latest version</p>
  
  <p>What I should do to run "make qemu" successfully?</p>
  
  <p>Thank you in advance for any help. :)</p>