在 Rails 6 应用程序中记录乘客错误:将 PASSENGER_COMPILE_NATIVE_SUPPORT_BINARY=0 设置为禁用

问题描述 投票:0回答:1

我有一个rails 6应用程序,工作正常,使用passenger和nginx,但是有这样的日志错误:

App 759213 output:  [passenger_native_support.so] trying to compile for the current user (www-data) and Ruby interpreter...
App 759213 output:      (set PASSENGER_COMPILE_NATIVE_SUPPORT_BINARY=0 to disable)
App 759213 output:      Warning: compilation didn't succeed. To learn why, read this file:
App 759213 output:      /tmp/passenger_native_support-gdcb4x.log
App 759213 output:  [passenger_native_support.so] finding downloads for the current Ruby interpreter...
App 759213 output:      (set PASSENGER_DOWNLOAD_NATIVE_SUPPORT_BINARY=0 to disable)
App 759213 output:      Could not download https://github.com/phusion/passenger/releases/download/release-6.0.19/rubyext-ruby-3.0.6-x86_64-linux.tar.gz: no download tool found (curl or wget required)
App 759213 output:      Trying next mirror...
App 759213 output:      Could not download https://oss-binaries.phusionpassenger.com/binaries/passenger/by_release/6.0.19/rubyext-ruby-3.0.6-x86_64-linux.tar.gz: no download tool found (curl or wget required)
App 759213 output:      Trying next mirror...
App 759213 output:      Could not download https://s3.amazonaws.com/phusion-passenger/binaries/passenger/by_release/6.0.19/rubyext-ruby-3.0.6-x86_64-linux.tar.gz: no download tool found (curl or wget required)
App 759213 output:  [passenger_native_support.so] will not be used (can't compile or download) 
App 759213 output:   --> Passenger will still operate normally.
App 759253 output:  [passenger_native_support.so] trying to compile for the current user (www-data) and Ruby interpreter...
App 759253 output:      (set PASSENGER_COMPILE_NATIVE_SUPPORT_BINARY=0 to disable)
App 759253 output:      Warning: compilation didn't succeed. To learn why, read this file:
App 759253 output:      /tmp/passenger_native_support-8s1xwa.log
App 759253 output:  [passenger_native_support.so] finding downloads for the current Ruby interpreter...
App 759253 output:      (set PASSENGER_DOWNLOAD_NATIVE_SUPPORT_BINARY=0 to disable)
App 759253 output:      Could not download https://github.com/phusion/passenger/releases/download/release-6.0.19/rubyext-ruby-3.0.6-x86_64-linux.tar.gz: no download tool found (curl or wget required)
App 759253 output:      Trying next mirror...
App 759253 output:      Could not download https://oss-binaries.phusionpassenger.com/binaries/passenger/by_release/6.0.19/rubyext-ruby-3.0.6-x86_64-linux.tar.gz: no download tool found (curl or wget required)
App 759253 output:      Trying next mirror...
App 759253 output:      Could not download https://s3.amazonaws.com/phusion-passenger/binaries/passenger/by_release/6.0.19/rubyext-ruby-3.0.6-x86_64-linux.tar.gz: no download tool found (curl or wget required)
App 759253 output:  [passenger_native_support.so] will not be used (can't compile or download) 
App 759253 output:   --> Passenger will still operate normally.
App 759384 output:  [passenger_native_support.so] trying to compile for the current user (www-data) and Ruby interpreter...
App 759384 output:      (set PASSENGER_COMPILE_NATIVE_SUPPORT_BINARY=0 to disable)
App 759384 output:      Warning: compilation didn't succeed. To learn why, read this file:
App 759384 output:      /tmp/passenger_native_support-1dlu9gp.log

那为什么呢?以及如何解决这个问题?

ruby-on-rails nginx passenger ruby-on-rails-6
1个回答
0
投票

看起来您需要安装

curl
wget

© www.soinside.com 2019 - 2024. All rights reserved.