title: valgrind: tool 'memcheck' not installed
body: <p>I'm new to programming and am following the tutorials at <a href="http://c.learncodethehardway.org/book/ex4.html" rel="nofollow">http://c.learncodethehardway.org/book/ex4.html</a> which shows you how to install valgrind. I've compiled the example program which should show memory leaks</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  /* Warning: This program is wrong on purpose. */
  
  int main()
  {
      int age = 10;
      int height;
  
      printf("I am %d years old.\n");
      printf("I am %d inches tall.\n", height);
  
      return 0;
  }
  </code></pre>
  
  <p>but when i type </p>
  
  <pre><code>    $ valgrind ./ex4
  </code></pre>
  
  <p>i get the message</p>
  
  <pre><code>    valgrind: tool 'memcheck' not installed (/usr/local/lib/valgrind/memcheck-amd64-darwin) (No such file or directory)
  </code></pre>
  
  <p>When i look in that directory there is no memcheck file. Has the installer not worked?</p>