'捆绑执行乘客启动' Rake 命令失败

发布于 2025-01-20 02:53:42 字数 3842 浏览 3 评论 0原文

我在 Ruby on Rails 应用程序中使用乘客 5.3.2。我的开发环境是MacOS 12.1,我使用Ruby 2.6.6

Bundle安装成功。

当我尝试跑步时 捆绑执行乘客启动 我收到以下消息:

 --> Downloading a Phusion Passenger agent binary for your platform
     Could not download https://oss-binaries.phusionpassenger.com/binaries/passenger/by_release/5.3.2/agent-x86_64-macosx-12.1.tar.gz: The requested URL returned error: 404
     Trying next mirror...
     Could not download https://s3.amazonaws.com/phusion-passenger/binaries/passenger/by_release/5.3.2/agent-x86_64-macosx-12.1.tar.gz: The requested URL returned error: 403
     ------------------------------------------
     Sorry, no precompiled agent binary is available for your platform.

---------------------------------------

The Phusion Passenger agent binary could not be downloaded. Compiling it from source instead.

然后继续,

Checking for required software...

 * Checking for C compiler...
      Found: yes
      Location: /usr/bin/cc
 * Checking for C++ compiler...
      Found: yes
      Location: /usr/bin/c++
 * Checking for Rake (associated with /Users/stefan/.rvm/gems/ruby-2.6.6/wrappers/ruby)...
      Found: yes
      Location: /Users/stefan/.rvm/gems/ruby-2.6.6/wrappers/rake
 * Checking for Curl development headers with SSL support...
      Found: yes
      curl-config location: /usr/bin/curl-config
      Header location: /Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/usr/include/curl/curl.h
      Version: libcurl 7.77.0
      Usable: yes
      Supports SSL: yes
 * Checking for OpenSSL development headers...
      Found: yes
      Location: /usr/local/opt/openssl/include/openssl/ssl.h
 * Checking for Zlib development headers...
      Found: yes
      Location: /Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/usr/include/zlib.h


--------------------------------------------

Compile the agent with optimizations?

Compiling the agent with optimizations will make Phusion Passenger faster, but
it will take longer to compile and it requires at least 2 GB of memory.

Compile with optimizations? [y/n]: n  

然后失败并出现错误

*** ERROR: a Rake command failed. You can find the full log in /var/folders/9s/0sjkwffd4kv3xp_1y_xfcg8h0000gn/T/passenger-install-log-9wh8h1. Below, you can find the last few lines of the command's output.
------------- Begin command output snippet -------------
rake aborted!
Command failed with status (1): [c++ -o /var/folders/9s/0sjkwffd4kv3xp_1y_xfcg8h0000gn/T/passenger-install.2eduk2/support-binaries/WatchdogMain.o  -Isrc/agent -Isrc/cxx_supportlib -Isrc/cxx_supportlib/vendor-copy -Isrc/cxx_supportlib/vendor-modified -Isrc/cxx_supportlib/vendor-modified/libev -Wno-ambiguous-member-template -Isrc/cxx_supportlib/vendor-copy/libuv/include -Isrc/cxx_supportlib/vendor-copy/websocketpp -I/usr/local/opt/openssl/include -D_REENTRANT -I/usr/local/include -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -Wno-missing-field-initializers -Wno-ambiguous-member-template -fvisibility=hidden -DVISIBILITY_ATTRIBUTE_SUPPORTED -DHAS_ALLOCA_H -DHAS_SFENCE -DHAS_LFENCE -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -g -fno-limit-debug-info -std=gnu++11 -Wno-unused-local-typedefs -DHAS_UNORDERED_MAP -c src/agent/Watchdog/WatchdogMain.cpp]
/Users/stefan/.rvm/gems/ruby-2.6.6/gems/passenger-5.3.2/build/support/cplusplus.rb:53:in `run_compiler'
/Users/stefan/.rvm/gems/ruby-2.6.6/gems/passenger-5.3.2/build/support/cplusplus.rb:104:in `compile_cxx'
/Users/stefan/.rvm/gems/ruby-2.6.6/gems/passenger-5.3.2/build/support/cplusplus.rb:162:in `block in define_cxx_object_compilation_task'
/Users/stefan/.rvm/gems/ruby-2.6.6/gems/rake-13.0.3/lib/rake/task.rb:281:in `block in execute'

有关如何解决此问题的建议吗? 我已经超出了我的深度。运行优化会得到相同的结果。

谢谢。

I'm using passenger 5.3.2 in a Ruby on Rails app. My dev environment is MacOS 12.1, I'm using Ruby 2.6.6

Bundle install succeeded.

When I try and run
bundle exec passenger start
I get the following message:

 --> Downloading a Phusion Passenger agent binary for your platform
     Could not download https://oss-binaries.phusionpassenger.com/binaries/passenger/by_release/5.3.2/agent-x86_64-macosx-12.1.tar.gz: The requested URL returned error: 404
     Trying next mirror...
     Could not download https://s3.amazonaws.com/phusion-passenger/binaries/passenger/by_release/5.3.2/agent-x86_64-macosx-12.1.tar.gz: The requested URL returned error: 403
     ------------------------------------------
     Sorry, no precompiled agent binary is available for your platform.

---------------------------------------

The Phusion Passenger agent binary could not be downloaded. Compiling it from source instead.

It then proceeds

Checking for required software...

 * Checking for C compiler...
      Found: yes
      Location: /usr/bin/cc
 * Checking for C++ compiler...
      Found: yes
      Location: /usr/bin/c++
 * Checking for Rake (associated with /Users/stefan/.rvm/gems/ruby-2.6.6/wrappers/ruby)...
      Found: yes
      Location: /Users/stefan/.rvm/gems/ruby-2.6.6/wrappers/rake
 * Checking for Curl development headers with SSL support...
      Found: yes
      curl-config location: /usr/bin/curl-config
      Header location: /Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/usr/include/curl/curl.h
      Version: libcurl 7.77.0
      Usable: yes
      Supports SSL: yes
 * Checking for OpenSSL development headers...
      Found: yes
      Location: /usr/local/opt/openssl/include/openssl/ssl.h
 * Checking for Zlib development headers...
      Found: yes
      Location: /Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/usr/include/zlib.h


--------------------------------------------

Compile the agent with optimizations?

Compiling the agent with optimizations will make Phusion Passenger faster, but
it will take longer to compile and it requires at least 2 GB of memory.

Compile with optimizations? [y/n]: n  

After that it fails with error

*** ERROR: a Rake command failed. You can find the full log in /var/folders/9s/0sjkwffd4kv3xp_1y_xfcg8h0000gn/T/passenger-install-log-9wh8h1. Below, you can find the last few lines of the command's output.
------------- Begin command output snippet -------------
rake aborted!
Command failed with status (1): [c++ -o /var/folders/9s/0sjkwffd4kv3xp_1y_xfcg8h0000gn/T/passenger-install.2eduk2/support-binaries/WatchdogMain.o  -Isrc/agent -Isrc/cxx_supportlib -Isrc/cxx_supportlib/vendor-copy -Isrc/cxx_supportlib/vendor-modified -Isrc/cxx_supportlib/vendor-modified/libev -Wno-ambiguous-member-template -Isrc/cxx_supportlib/vendor-copy/libuv/include -Isrc/cxx_supportlib/vendor-copy/websocketpp -I/usr/local/opt/openssl/include -D_REENTRANT -I/usr/local/include -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -Wno-missing-field-initializers -Wno-ambiguous-member-template -fvisibility=hidden -DVISIBILITY_ATTRIBUTE_SUPPORTED -DHAS_ALLOCA_H -DHAS_SFENCE -DHAS_LFENCE -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -g -fno-limit-debug-info -std=gnu++11 -Wno-unused-local-typedefs -DHAS_UNORDERED_MAP -c src/agent/Watchdog/WatchdogMain.cpp]
/Users/stefan/.rvm/gems/ruby-2.6.6/gems/passenger-5.3.2/build/support/cplusplus.rb:53:in `run_compiler'
/Users/stefan/.rvm/gems/ruby-2.6.6/gems/passenger-5.3.2/build/support/cplusplus.rb:104:in `compile_cxx'
/Users/stefan/.rvm/gems/ruby-2.6.6/gems/passenger-5.3.2/build/support/cplusplus.rb:162:in `block in define_cxx_object_compilation_task'
/Users/stefan/.rvm/gems/ruby-2.6.6/gems/rake-13.0.3/lib/rake/task.rb:281:in `block in execute'

Any advice on how to resolve this?
I'm out of my depth here. Running with optimizations gives same result.

Thank you.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

記柔刀 2025-01-27 02:53:42

无法下载https://oss-binaries.phusionpassenger.com/binaries/passenger/by_release/5.3.2/agent-x86_64-macosx-12.1.tar.gz:请求的URL返回错误:404

如果您访问5.3.2索引(https://oss-binaries.phusionpassenger.com/binaries/passenger/by_release /5.3.2/)您可以看到最高可用的 MacOS 版本是 10.15。

我的开发环境是 MacOS 12.1 ..

您可以降级 MacOS 版本,也可以升级 Passenger。

Could not download https://oss-binaries.phusionpassenger.com/binaries/passenger/by_release/5.3.2/agent-x86_64-macosx-12.1.tar.gz: The requested URL returned error: 404

If you visit the 5.3.2 index (https://oss-binaries.phusionpassenger.com/binaries/passenger/by_release/5.3.2/) you can see that the highest available MacOS version is 10.15.

My dev environment is MacOS 12.1 ..

You can either downgrade your version of MacOS, or you can upgrade Passenger.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文