title: cannot load such file -- bundler/setup (LoadError)
body: <p>I'm setting Rails 4 application with Ruby 2.0, but I'm getting "Web application could not be started" and get this trace:</p>
  
  <pre><code>cannot load such file -- bundler/setup (LoadError)
    /usr/local/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:53:in `require'
    /usr/local/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:53:in `require'
    /usr/lib/ruby/gems/1.8/gems/passenger-4.0.19/lib/phusion_passenger/loader_shared_helpers.rb:212:in `run_load_path_setup_code'
    /usr/lib/ruby/gems/1.8/gems/passenger-4.0.19/helper-scripts/rack-preloader.rb:96:in `preload_app'
    /usr/lib/ruby/gems/1.8/gems/passenger-4.0.19/helper-scripts/rack-preloader.rb:150:in `&lt;module:App&gt;'
    /usr/lib/ruby/gems/1.8/gems/passenger-4.0.19/helper-scripts/rack-preloader.rb:29:in `&lt;module:PhusionPassenger&gt;'
    /usr/lib/ruby/gems/1.8/gems/passenger-4.0.19/helper-scripts/rack-preloader.rb:28:in `&lt;main&gt;'
  </code></pre>
  
  <p>My apache2.conf is:</p>
  
  <pre><code>LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-4.0.19/buildout/apache2/mod_passenger.so
     PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-4.0.19
     PassengerDefaultRuby /usr/local/bin/ruby
  </code></pre>
  
  <p><code>bundle -v</code> is:</p>
  
  <pre><code>Bundler version 1.3.5
  </code></pre>
  
  <p><code>ruby -v</code> is:</p>
  
  <pre><code>ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-linux]
  </code></pre>
  
  <p><code>gem env</code> is:</p>
  
  <pre><code>RubyGems Environment:
    - RUBYGEMS VERSION: 2.1.5
    - RUBY VERSION: 2.0.0 (2013-06-27 patchlevel 247) [x86_64-linux]
    - INSTALLATION DIRECTORY: /usr/lib/ruby/gems/1.8
    - RUBY EXECUTABLE: /usr/local/bin/ruby
    - EXECUTABLE DIRECTORY: /usr/lib/ruby/gems/1.8/bin
    - SPEC CACHE DIRECTORY: /root/.gem/specs
    - RUBYGEMS PLATFORMS:
      - ruby
      - x86_64-linux
    - GEM PATHS:
       - /usr/lib/ruby/gems/1.8
    - GEM CONFIGURATION:
       - :update_sources =&gt; true
       - :verbose =&gt; true
       - :backtrace =&gt; false
       - :bulk_threshold =&gt; 1000
    - REMOTE SOURCES:
       - https://rubygems.org/
    - SHELL PATH:
       - /root/.gems/bin
       - /usr/lib/ruby/gems/1.8/bin/
       - /usr/local/bin
       - /usr/bin
       - /bin
       - /usr/bin/X11
       - /usr/games
       - /usr/sbin
       - /sbin
  </code></pre>
  
  <p><code>echo $GEM_PATH</code> is:</p>
  
  <pre><code>/usr/lib/ruby/gems/1.8:/usr/lib/ruby/gems/1.8
  </code></pre>
  
  <p>Shouldn't <code>GEM_PATH</code> be <code>/usr/lib/ruby/gems/2.0</code>?</p>
  
  <p>Inside the virtual host in apache2.conf I added:</p>
  
  <pre><code>SetEnv GEM_HOME /usr/lib/ruby/gems/1.8
  </code></pre>
  
  <p>And now it is working.</p>
  
  <p>Is it the right way to fix this?</p>