title: GDB on Mac OS Sierra, trying to uninstall and remove all files completely but can't
body: <p>I should preface this by stating I'm working with Xcode on macOS Sierra 10.12.6.</p>
  
  <p>I installed GDB with <code>homebrew</code> and it appeared to install fine until I tried to use it.  In terminal it kept saying that it was not a valid command.  (I'm new to C and was working with my professor.  Even he was baffled when I tried to use it after downloading it in front of him).  So later I tried to install it by creating the make file and still having problems.  I then used <code>homebrew</code> again but to uninstall and reinstall, still having problems.</p>
  
  <p>Now I'm at the point where I can't even run my C files when I use <code>gcc</code> to compile them.  I simply get a statement that <code>unable to open file</code>.  I've read someone suggest to <code>sudo mv /usr/local /usr/_local</code> and I'm notified that I don't have permission, even after entering in my password.</p>
  
  <p>I've gotten every error when I try to remove all items belonging to <code>gdb</code>.  I've gone as far as removing Xcode in hopes that I can do a fresh install of it all.  </p>
  
  <p>I'm at the point where I've begun looking into removing my macports entirely.</p>
  
  <p>I'm looking for any advice into how I can try to start off from a clean slate.  I need to use <code>gdb</code> on a project that is due and can't get this up and running.  Please help talk me from a ledge!</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>I have used Sublime to create a simple <code>Hello World</code> file and it compiles and runs fine with <code>gcc</code>.  So my project file has become corrupted somehow.  At least I can calm down a bit.  But I would still like to get this <code>gdb</code> issue figured out and install a fresh copy with everything old removed.  </p>