1

大家好,我正在与 Phusion Passenger 合作,我去运行我的网络应用程序,它给了我 Ruby 2.0 不是一个有效的平台。这是我下面的输出,有什么想法吗?

谢谢!

ruby_20` is not a valid platform. The available options are: [:ruby, :ruby_18, :ruby_19, :mri, :mri_18, :mri_19, :rbx, :jruby, :mswin, :mingw, :mingw_18, :mingw_19] (Bundler::DslError)
  /usr/lib/ruby/vendor_ruby/bundler/dsl.rb:209:in `block in _normalize_options'
  /usr/lib/ruby/vendor_ruby/bundler/dsl.rb:207:in `each'
  /usr/lib/ruby/vendor_ruby/bundler/dsl.rb:207:in `_normalize_options'
  /usr/lib/ruby/vendor_ruby/bundler/dsl.rb:56:in `gem'
  /home/bistro/openproject/Gemfile:82:in `evaluate'
  /usr/lib/ruby/vendor_ruby/bundler/dsl.rb:7:in `instance_eval'
  /usr/lib/ruby/vendor_ruby/bundler/dsl.rb:7:in `evaluate'
  /usr/lib/ruby/vendor_ruby/bundler/definition.rb:17:in `build'
  /usr/lib/ruby/vendor_ruby/bundler.rb:136:in `definition'
  /usr/lib/ruby/vendor_ruby/bundler.rb:124:in `load'
  /usr/lib/ruby/vendor_ruby/bundler.rb:107:in `setup'
  /usr/lib/ruby/vendor_ruby/bundler/setup.rb:17:in `<top (required)>'
  /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
  /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
  /var/lib/gems/1.9.1/gems/passenger-4.0.29/lib/phusion_passenger/loader_shared_helpers.rb:219:in `block in run_load_path_setup_code'
  /var/lib/gems/1.9.1/gems/passenger-4.0.29/lib/phusion_passenger/loader_shared_helpers.rb:333:in `running_bundler'
  /var/lib/gems/1.9.1/gems/passenger-4.0.29/lib/phusion_passenger/loader_shared_helpers.rb:217:in `run_load_path_setup_code'
  /var/lib/gems/1.9.1/gems/passenger-4.0.29/helper-scripts/rack-preloader.rb:96:in `preload_app'
  /var/lib/gems/1.9.1/gems/passenger-4.0.29/helper-scripts/rack-preloader.rb:153:in `<module:App>'
  /var/lib/gems/1.9.1/gems/passenger-4.0.29/helper-scripts/rack-preloader.rb:29:in `<module:PhusionPassenger>'
  /var/lib/gems/1.9.1/gems/passenger-4.0.29/helper-scripts/rack-preloader.rb:28:in `<main>'

我尝试过更新 Ruby Gems、更新 Bundler、重新安装 Phusion——但我不知道还能做什么。有什么想法吗?

更新 2:

我更新了 Open 项目目录中的 Gem 文件,但仍然没有。

看起来 Bundle 更新了,现在我得到了一个不同的错误:

Cannot execute "/var/lib/gems/1.9.1/gems/passenger-4.0.29/buildout/agents/SpawnPreparer": No such file or directory (errno=2) Application root /home/bistro/openproject Environment (value of RAILS_ENV, RACK_ENV, WSGI_ENV and PASSENGER_ENV) production Ruby interpreter command /usr/bin/ruby1.9.1 User and groups Unknown Environment variables Unknown Ulimits Unknown
4

0 回答 0