title: gdb During startup program exited with code 127
body: <p>Wanted to use gdb as a debugger in Linux Debian. Trying to run a binary I get this:</p>
  
  <pre><code>(gdb) r
  Starting program: /usr/local/sbin/test 
  /bin/bash: /usr/local/sbin/test: No such file or directory
  During startup program exited with code 127.
  (gdb) 
  </code></pre>
  
  <p>I guess it's supposed to be elementary. But  I googled a lot and most common answer is </p>
  
  <pre><code>$ export SHELL=/bin/bash
  </code></pre>
  
  <p>This doesn't help. I also tried to change PATH for binaries execution, tried to run from different directory... Still the same.</p>
  
  <p>Could you please help me  with that? </p>