nginx Rails 6应用程序中的乘客日志错误:将PASSENGER_COMPILE_NATIVE_SUPPORT_BINARY=0设置为禁用

hxzsmxv2  于 2024-01-06  发布在  Nginx
关注(0)|答案(1)|浏览(157)

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

  1. App 759213 output: [passenger_native_support.so] trying to compile for the current user (www-data) and Ruby interpreter...
  2. App 759213 output: (set PASSENGER_COMPILE_NATIVE_SUPPORT_BINARY=0 to disable)
  3. App 759213 output: Warning: compilation didn't succeed. To learn why, read this file:
  4. App 759213 output: /tmp/passenger_native_support-gdcb4x.log
  5. App 759213 output: [passenger_native_support.so] finding downloads for the current Ruby interpreter...
  6. App 759213 output: (set PASSENGER_DOWNLOAD_NATIVE_SUPPORT_BINARY=0 to disable)
  7. 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)
  8. App 759213 output: Trying next mirror...
  9. 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)
  10. App 759213 output: Trying next mirror...
  11. 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)
  12. App 759213 output: [passenger_native_support.so] will not be used (can't compile or download)
  13. App 759213 output: --> Passenger will still operate normally.
  14. App 759253 output: [passenger_native_support.so] trying to compile for the current user (www-data) and Ruby interpreter...
  15. App 759253 output: (set PASSENGER_COMPILE_NATIVE_SUPPORT_BINARY=0 to disable)
  16. App 759253 output: Warning: compilation didn't succeed. To learn why, read this file:
  17. App 759253 output: /tmp/passenger_native_support-8s1xwa.log
  18. App 759253 output: [passenger_native_support.so] finding downloads for the current Ruby interpreter...
  19. App 759253 output: (set PASSENGER_DOWNLOAD_NATIVE_SUPPORT_BINARY=0 to disable)
  20. 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)
  21. App 759253 output: Trying next mirror...
  22. 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)
  23. App 759253 output: Trying next mirror...
  24. 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)
  25. App 759253 output: [passenger_native_support.so] will not be used (can't compile or download)
  26. App 759253 output: --> Passenger will still operate normally.
  27. App 759384 output: [passenger_native_support.so] trying to compile for the current user (www-data) and Ruby interpreter...
  28. App 759384 output: (set PASSENGER_COMPILE_NATIVE_SUPPORT_BINARY=0 to disable)
  29. App 759384 output: Warning: compilation didn't succeed. To learn why, read this file:
  30. App 759384 output: /tmp/passenger_native_support-1dlu9gp.log

字符串
为什么?又该如何解决?

相关问题