安装canvas LMS时发生错误

时间:2020-10-12 05:04:01

标签: ruby canvas

我是初级程序员,想在Ubuntu 18.04(64位)中安装canvas LMS。 Phusion Passenger应用程序服务器尝试启动Web应用程序。但是应用程序本身(而不是乘客)遇到内部错误。
ruby版本:ruby 2.7.2p137(2020-10-01修订版5445e04352)[x86_64-linux]

错误详细信息:

[!]评估Gemfile时出错:MRI的ruby_version必须与:engine_version匹配。捆绑器无法继续。

 #  from /var/www/html/canvas-lms/Gemfile.d/_before.rb:33

 (Bundler::Dsl::DSLError)
  /usr/local/lib/site_ruby/2.4.0/bundler/ruby_dsl.rb:13:in `ruby'
  /var/www/html/canvas-lms/Gemfile.d/_before.rb:33:in `block in eval_gemfile'
  /var/www/html/canvas-lms/Gemfile:23:in `eval'
  /var/www/html/canvas-lms/Gemfile:23:in `block in eval_gemfile'
  /var/www/html/canvas-lms/Gemfile:22:in `each'
  /var/www/html/canvas-lms/Gemfile:22:in `eval_gemfile'
  /usr/local/lib/site_ruby/2.4.0/bundler/dsl.rb:47:in `instance_eval'
  /usr/local/lib/site_ruby/2.4.0/bundler/dsl.rb:47:in `eval_gemfile'
  /usr/local/lib/site_ruby/2.4.0/bundler/dsl.rb:12:in `evaluate'
  /usr/local/lib/site_ruby/2.4.0/bundler/definition.rb:34:in `build'
  /usr/local/lib/site_ruby/2.4.0/bundler.rb:195:in `definition'
  /usr/local/lib/site_ruby/2.4.0/bundler.rb:143:in `setup'
  /usr/local/lib/site_ruby/2.4.0/bundler/setup.rb:20:in `block in <top (required)>'
  /usr/local/lib/site_ruby/2.4.0/bundler/ui/shell.rb:136:in `with_level'
  /usr/local/lib/site_ruby/2.4.0/bundler/ui/shell.rb:88:in `silence'
  /usr/local/lib/site_ruby/2.4.0/bundler/setup.rb:20:in `<top (required)>'
  /usr/local/lib/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:92:in `require'
  /usr/local/lib/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:92:in `require'
  /usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:361:in `activate_gem'
  /usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:221:in `block in run_load_path_setup_code'
  /usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:525:in `running_bundler'
  /usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:220:in `run_load_path_setup_code'
  /usr/share/passenger/helper-scripts/rack-preloader.rb:91:in `preload_app'
  /usr/share/passenger/helper-scripts/rack-preloader.rb:189:in `block in <module:App>'
  /usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:378:in `run_block_and_record_step_progress'
  /usr/share/passenger/helper-scripts/rack-preloader.rb:188:in `<module:App>'
  /usr/share/passenger/helper-scripts/rack-preloader.rb:30:in `<module:PhusionPassenger>'
  /usr/share/passenger/helper-scripts/rack-preloader.rb:29:in `<main>'
The stdout/stderr output of the subprocess so far is:

/usr/lib/ruby/vendor_ruby/rubygems/defaults/operating_system.rb:10: warning: constant Gem::ConfigMap is deprecated
/usr/lib/ruby/vendor_ruby/rubygems/defaults/operating_system.rb:10: warning: constant Gem::ConfigMap is deprecated
/usr/lib/ruby/vendor_ruby/rubygems/defaults/operating_system.rb:29: warning: constant Gem::ConfigMap is deprecated
/usr/lib/ruby/vendor_ruby/rubygems/defaults/operating_system.rb:30: warning: constant Gem::ConfigMap is deprecated
/usr/lib/ruby/vendor_ruby/rubygems/defaults/operating_system.rb:10: warning: constant Gem::ConfigMap is deprecated
 [passenger_native_support.so] trying to compile for the current user (nobody) and Ruby interpreter...
     (set PASSENGER_COMPILE_NATIVE_SUPPORT_BINARY=0 to disable)
     Warning: compilation didn't succeed. To learn why, read this file:
     /tmp/passenger_native_support-x9f25t.log
 [passenger_native_support.so] finding downloads for the current Ruby interpreter...
     (set PASSENGER_DOWNLOAD_NATIVE_SUPPORT_BINARY=0 to disable)
     # tar xzf rubyext-ruby-2.4.10-x86_64-linux.tar.gz
     # rm -f rubyext-ruby-2.4.10-x86_64-linux.tar.gz
     Checking whether downloaded binary is usable...
     # /usr/bin/ruby2.4 -I. test.rb
     /usr/lib/ruby/vendor_ruby/rubygems/defaults/operating_system.rb:10: warning: constant Gem::ConfigMap is deprecated
     /usr/lib/ruby/vendor_ruby/rubygems/defaults/operating_system.rb:10: warning: constant Gem::ConfigMap is deprecated
     /usr/lib/ruby/vendor_ruby/rubygems/defaults/operating_system.rb:29: warning: constant Gem::ConfigMap is deprecated
     /usr/lib/ruby/vendor_ruby/rubygems/defaults/operating_system.rb:30: warning: constant Gem::ConfigMap is deprecated
     /usr/local/lib/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:92:in `require': libruby.so.2.4: cannot open shared object file: No such file or directory - /tmp/passenger-native-support-1g21sb1/passenger_native_support.so (LoadError)
        from /usr/local/lib/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:92:in `require'
        from test.rb:2:in `<main>'
     Binary is not usable.
 [passenger_native_support.so] will not be used (can't compile or download) 
  --> Passenger will still operate normally.
/usr/lib/ruby/vendor_ruby/rubygems/defaults/operating_system.rb:10: warning: constant Gem::ConfigMap is deprecated
Error: The application encountered the following error: 
[!] There was an error evaluating `Gemfile`: ruby_version must match the :engine_version for MRI. Bundler cannot continue.

 #  from /var/www/html/canvas-lms/Gemfile.d/_before.rb:33

 (Bundler::Dsl::DSLError)
    /usr/local/lib/site_ruby/2.4.0/bundler/ruby_dsl.rb:13:in `ruby'
    /var/www/html/canvas-lms/Gemfile.d/_before.rb:33:in `block in eval_gemfile'
    /var/www/html/canvas-lms/Gemfile:23:in `eval'
    /var/www/html/canvas-lms/Gemfile:23:in `block in eval_gemfile'
    /var/www/html/canvas-lms/Gemfile:22:in `each'
    /var/www/html/canvas-lms/Gemfile:22:in `eval_gemfile'
    /usr/local/lib/site_ruby/2.4.0/bundler/dsl.rb:47:in `instance_eval'
    /usr/local/lib/site_ruby/2.4.0/bundler/dsl.rb:47:in `eval_gemfile'
    /usr/local/lib/site_ruby/2.4.0/bundler/dsl.rb:12:in `evaluate'
    /usr/local/lib/site_ruby/2.4.0/bundler/definition.rb:34:in `build'
    /usr/local/lib/site_ruby/2.4.0/bundler.rb:195:in `definition'
    /usr/local/lib/site_ruby/2.4.0/bundler.rb:143:in `setup'
    /usr/local/lib/site_ruby/2.4.0/bundler/setup.rb:20:in `block in <top (required)>'
    /usr/local/lib/site_ruby/2.4.0/bundler/ui/shell.rb:136:in `with_level'
    /usr/local/lib/site_ruby/2.4.0/bundler/ui/shell.rb:88:in `silence'
    /usr/local/lib/site_ruby/2.4.0/bundler/setup.rb:20:in `<top (required)>'
    /usr/local/lib/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:92:in `require'
    /usr/local/lib/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:92:in `require'
    /usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:361:in `activate_gem'
    /usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:221:in `block in run_load_path_setup_code'
    /usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:525:in `running_bundler'
    /usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:220:in `run_load_path_setup_code'
    /usr/share/passenger/helper-scripts/rack-preloader.rb:91:in `preload_app'
    /usr/share/passenger/helper-scripts/rack-preloader.rb:189:in `block in <module:App>'
    /usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:378:in `enter code here`run_block_and_record_step_progress'
    /usr/share/passenger/helper-scripts/rack-preloader.rb:188:in `<module:App>'
    /usr/share/passenger/helper-scripts/rack-preloader.rb:30:in `<module:PhusionPassenger>'
    /usr/share/passenger/helper-scripts/rack-preloader.rb:29:in `<main>'

0 个答案:

没有答案
相关问题