我有 RVM,它的默认 ruby 是 2.0.0 systemruby 之前是 1.8.7,不知何故我新安装的 redmine 2.4.3 应用程序尝试查找旧文件夹(1.8)而不是我的 2.0。
这是我的 apache2 错误日志。:
*** Exception LoadError in PhusionPassenger::Rack::ApplicationSpawner (no such file to load -- bundler/setup)
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /data/redmine2.4.3/redmine-2.4.3/config/boot.rb:6
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /data/redmine2.4.3/redmine-2.4.3/config/application.rb:1
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /data/redmine2.4.3/redmine-2.4.3/config/environment.rb:2
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from config.ru:3
from /usr/lib/ruby/vendor_ruby/rack/builder.rb:51:in `instance_eval'
from /usr/lib/ruby/vendor_ruby/rack/builder.rb:51:in `initialize'
from config.ru:1:in `new'
from config.ru:1
我读到我可以在 apache2 配置中拥有不同的 ruby 设置,如下所示:
PassengerRuby /home/me/.rvm/rubies/ruby-2.0.0-p247/bin/ruby
PassengerRoot /home/me/.rvm/gems/ruby-2.0.0-p247/gems/passenger-4.0.37
当我已经设定AllowOverrid all
我需要做什么才能使它工作?