There is no such file to download - bundler / setup

I am trying to run Rails on Rackspace Servers and, unfortunately, they do not support Rails. I use Apache and Passenger (without RVM) on Ubuntu. When I got to the server, I got the following error:

no such file to download - bundler / setup

Tracking is as follows:

/usr/lib/ruby/1.8/rubygems/custom_require.rb 31 in gem_original_require' /usr/lib/ruby/1.8/rubygems/custom_require.rb 31 in require' / rails / gradebook -attendance / config / boot.rb 6
/usr/lib/ruby/1.8/rubygems/custom_require.rb 31 in gem_original_require' /usr/lib/ruby/1.8/rubygems/custom_require.rb 31 in require' / rails / gradebook -attendance / config / application.rb 1
/usr/lib/ruby/1.8/rubygems/custom_require.rb 31 in gem_original_require' /usr/lib/ruby/1.8/rubygems/custom_require.rb 31 in require' / rails / gradebook -attendance / config / environment.rb 2
/usr/lib/ruby/1.8/rubygems/custom_require.rb 31 in gem_original_require' /usr/lib/ruby/1.8/rubygems/custom_require.rb 31 in require' config.ru 3
/usr/lib/ruby/1.8/rack/builder.rb 46 in instance_eval' /usr/lib/ruby/1.8/rack/builder.rb 46 in initialize' config.ru 1 in `new 'config.ru 1

The bundler is definitely installed. When I execute gem list -d bundler, I return

* LOCAL GEMS *

bundler (1.0.17) Authors: Andre Arco, Terence Lee, Karl Lerche, Yehuda Katz Rubyforge: http://rubyforge.org/projects/bundler Homepage: http://gembundler.com Installed at: / opt / ruby /lib/ruby/gems/1.8 The best way to manage application dependencies

In addition, starting irb and the require require bundler returns true.

$ GEM_HOME points to a path that includes the stone bundler-1.0.17.

I also set RUBYOPT = rubygems

Any help is appreciated!

+8
ruby ruby-on-rails ubuntu apache passenger
source share
1 answer

Do you have the GEM_HOME set in your user space or you are using the SetEnv directive for apache. If you have something like your bash profile then apache will not see this env variable. In your vhost you can add something like:

 SetEnv GEM_HOME /opt/ruby/lib/ruby/gems/1.8 
+12
source share

All Articles