title: Could not find 'bundler' (>= 0) among 0 total gem(s) (Gem::LoadError)
body: <p>I'm trying to install gitlab on my vhost. It's an Ubuntu 14.04. </p>
  
  <p>The introduction tells me to run the command:</p>
  
  <pre><code>sudo -u gitlab -H bundle install --deployment --without development test postgres aws kerberos
  </code></pre>
  
  <p>But than I always get the error: </p>
  
  <pre><code>/usr/local/lib/ruby/2.2.0/rubygems/dependency.rb:315:in `to_specs': Could not find 'bundler' (&gt;= 0) among 0 total gem(s) (Gem::LoadError)
  Checked in 'GEM_PATH=/home/gitlab/.gem/ruby/2.2.0:/usr/local/lib/ruby/gems/2.2.0', execute `gem env` for more information
      from /usr/local/lib/ruby/2.2.0/rubygems/dependency.rb:324:in `to_spec'
      from /usr/local/lib/ruby/2.2.0/rubygems/core_ext/kernel_gem.rb:64:in `gem'
      from /usr/local/bin/bundle:22:in `&lt;main&gt;'
      from /usr/local/bin/ruby_executable_hooks:15:in `eval'
      from /usr/local/bin/ruby_executable_hooks:15:in `&lt;main&gt;'
  </code></pre>
  
  <p>If I start bundle as root it works normally. </p>
  
  <p>I tried a lot of solutions provided in other threads like:</p>
  
  <p><a href="https://stackoverflow.com/questions/6166081/could-not-find-bundler-error">“Could not find bundler” error</a>
  or 
  <a href="https://stackoverflow.com/questions/29626468/could-not-find-bundler-0-amongst-gemloaderror-with-rails-2-3-18">Could not find bundler (>= 0) amongst [] (Gem::LoadError) with rails 2.3.18</a></p>
  
  <p>and so on but nothing resloves this error. 
  Now I have no idea what I could do. </p>
  
  <p>My system: </p>
  
  <ul>
  <li>Ubuntu 14.04 (x_64)</li>
  <li>bundler 1.11.2</li>
  <li>ruby 2.2.4p230</li>
  </ul>
  
  <p>I hope you can help me out. </p>
  
  <p>If you need any other information please let me know. </p>