title: How to fix 'sudo: no tty present and no askpass program specified' error?
body: <p>I am trying to compile some sources using a makefile. In the makefile there is a bunch of commands that need to be ran as <code>sudo</code>. </p>
  
  <p>When I compile the sources from a terminal all goes fine and the make is paused the first time a <code>sudo</code> command is ran waiting for password. Once I type in the password, make resumes and completes.</p>
  
  <p>But I would like to be able to compile the sources in NetBeans. So, I started a project and showed netbeans where to find the sources, but when I compile the project it gives the error:</p>
  
  <pre><code>sudo: no tty present and no askpass program specified
  </code></pre>
  
  <p>The first time it hits a <code>sudo</code> command.</p>
  
  <p>I have looked up the issue on the internet and all the solutions I found point to one thing: disabling the password for this user. Since the user in question here is root. I do not want to do that.</p>
  
  <p>Is there any other solution?</p>