Note that there are some explanatory texts on larger screens.

plurals
  1. PO"no such file to load -- bundler/setup" on Apache/Passenger server
    text
    copied!<p>I'm trying to deploy a draft of my first Rails app. It works great on my local WEBRick server.</p> <p>However, on my Ubuntu VPS running Apache2 &amp; Passenger, when I navigate to the app in my browser, I get:</p> <pre><code>Error message: no such file to load -- bundler/setup Exception class: LoadError </code></pre> <p>With the following backtrace:</p> <pre><code>0 /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb 36 in `gem_original_require' 1 /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb 36 in `require' 2 /home/user/public/foo.com/config/boot.rb 6 3 /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb 36 in `gem_original_require' 4 /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb 36 in `require' 5 /home/user/public/foo.com/config/application.rb 1 6 /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb 36 in `gem_original_require' 7 /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb 36 in `require' 8 /home/user/public/foo.com/config/environment.rb 2 9 /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb 36 in `gem_original_require' 10 /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb 36 in `require' 11 config.ru 3 12 /usr/lib/ruby/vendor_ruby/rack/builder.rb 51 in `instance_eval' 13 /usr/lib/ruby/vendor_ruby/rack/builder.rb 51 in `initialize' 14 config.ru 1 in `new' 15 config.ru 1 </code></pre> <p>The app was built with Ruby v1.9.3 (or so I thought), which I've installed on Ubuntu (in the app root, <code>ruby -v</code> returns <code>ruby 1.9.3p286 (2012-10-12 revision 37165) [i686-linux]</code>).</p> <p>As per <a href="https://stackoverflow.com/questions/7270210/no-such-file-to-load-bundler-setup-ruby-on-rails">this question</a>, I've run <code>gem install bundle</code> and <code>bundle install</code> in the app root. I've also imported the correct <code>gemset</code> from my local machine to the VPS app root.</p> <p>As per <a href="https://stackoverflow.com/questions/10499364/no-such-file-to-load-bundler-setup-in-rails-3-2-with-passenger">this question</a>, I attempted to change the gem set to <code>/home/user/.rvm/gems/ruby-1.9.3-p286@foo</code> (where foo is that name of the gemset in use), but this just made the backtrace longer.</p> <p>Any help further troubleshooting this would be much appreciated!</p> <p><strong>EDIT:</strong> I finally got my app functioning by uninstalling Rails, RVM, Ruby (an RVM version) &amp; Passenger before reinstalling Rails, Passenger &amp; Ruby (but not RVM).</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload