title: /usr/bin/env: ruby 1.8: No such file or
body: <p>I'm working with Xubuntu 11.04.</p>
  
  <p>I do not succeed to have <code>thin</code> running at server startup.</p>
  
  <p>when I try the command:</p>
  
  <pre><code>/etc/init.d/thin start
  </code></pre>
  
  <p>I get the following message:</p>
  
  <pre><code>/usr/bin/env: ruby 1.8: No such file or ...
  </code></pre>
  
  <p>But the commands <code>ruby -v</code> is working fine and the result is <code>ruby 1.8.7 (2011-02-18 patchlevel334) Ruby enterprise</code><br>
  <code>rails -v</code> is also working fine and the result is <code>Rails 2.3.5</code></p>
  
  <p>If I do the command <code>sudo thin -C configfile.yml start</code> then the thin server is starting without any issue.</p>
  
  <p>Why can't it be started with the server? What can I do to have it working?</p>
  
  <p>The <code>thin</code> script is a usual one which is working fine on a <a href="https://www.debian.org/releases/lenny/" rel="nofollow">Debian-lenny</a></p>