title: How to install GDB from another directory?
body: <p>I'm trying to install GDB on my machine, though I get this error when I run ./configure:</p>
  <pre><code>configure: error: GDB must be configured and built in a directory separate from its sources.
  
  To do so, create a dedicated directory for your GDB build and invoke
  the configure script from that directory:
  
        $ mkdir build
        $ cd build
        $ &lt;full path to your sources&gt;/gdb-VERSION/configure [etc...]
        $ make
  </code></pre>
  <p>So I then created a new directory: /Users/SomeName/SomePath/gdb</p>
  <p>And I tried to run the following command:</p>
  <pre><code>./Users/SomeName/SomePath/gdb/configure
  </code></pre>
  <p>But that doesn't work either, I get an error:</p>
  <pre><code>-bash: ./Users/SomeName/SomePath/gdb/configure: No such file or directory
  </code></pre>
  <p>How do I run a C Program from another folder? First time I encountered this issue. Thanks in advance!</p>