Bundler version error when installing for user account
Added by Toasty Justice over 12 years ago
Hi,
I am receiving the following error when trying to install redmine on a shared-server passenger account:
Redmine requires Bundler 1.0.21 (you're using 1.0.7). Please install a newer version with `gem install bundler`.
I have rvm installed and have it set to ruby-1.8.7-p358, with the following gems installed:
*** LOCAL GEMS *** actionmailer (2.3.14) actionpack (2.3.14) activerecord (2.3.14) activeresource (2.3.14) activesupport (2.3.14) bundler (1.0.21) coderay (1.0.6) fastercsv (1.5.4) i18n (0.4.2) mysql (2.8.1) net-ldap (0.3.1) rack (1.1.3) rails (2.3.14) rake (0.9.2.2) ruby-openid (2.1.8) rubygems-bundler (0.9.0) rvm (1.11.3.3) tzinfo (0.3.33)
I am guessing this could be a path issue, where it might be trying to use the system-wide installation of ruby and gem, and have tried to set different path variables in environment.rb as below:
ENV['GEM_PATH'] = "/home/mysiteadmin/.rvm/gems/ruby-1.8.7-p358:/home/mysiteadmin/.rvm/gems/ruby-1.8.7-p358@global"
This seems to have no effect, and it is still using the system-wide 1.0.7 bundler gem.
Additionally, my production script/about is as follows:
NOTE: Gem.source_index is deprecated, use Specification. It will be removed on or after 2011-11-01. Gem.source_index called from /home/mysiteadmin/redmine.mysite.com/rack/ruby/1.8/gems/rails-2.3.14/lib/rails/gem_dependency.rb:21. About your application's environment Ruby version 1.8.7 (x86_64-linux) RubyGems version 1.8.23 Rack version 1.1.3 Rails version 2.3.14 Active Record version 2.3.14 Active Resource version 2.3.14 Action Mailer version 2.3.14 Active Support version 2.3.14 Application root /home/mysiteadmin/redmine.mysite.com Environment production Database adapter mysql Database schema version 20120301153455
I am not sure where to go from here.
Replies (1)
RE: Bundler version error when installing for user account
-
Added by Toasty Justice over 12 years ago
I have solved this problem by looking the order in which files are loaded.
All I had to do was move my GEM_HOME and GEM_PATH declarations from environment.rb to the top of preinitializer.rb.