title: Jenkins - /usr/bin/env: perl: No such file or directory
body: <p>I have strange problem - I wanted to use xvnc jenkins plugin because of karma tests for browsers like Chrome, Firefox etc... </p>
  
  <p>But there is problem with running vncserver while building. Console output:</p>
  
  <pre><code>Starting xvnc
  [workspace] $ vncserver :51 -localhost -nolisten tcp
  /usr/bin/env: perl: No such file or directory
  </code></pre>
  
  <p>this is repeated several times and last output is </p>
  
  <pre><code>FATAL: Failed to run 'vncserver :61 -localhost -nolisten tcp' (exit code 127), blacklisting display #61; consider checking the "Clean up before start" option
  </code></pre>
  
  <p>I can understand the problem is that jenkins cannot find Perl but it is really weird because when I run <code>env perl</code> it works (even as a jenkins user).</p>
  
  <p>What am I doing wrong?</p>
  
  <p>Thanks</p>