'捆绑执行乘客启动' Rake 命令失败
我在 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 runbundle 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您访问5.3.2索引(https://oss-binaries.phusionpassenger.com/binaries/passenger/by_release /5.3.2/)您可以看到最高可用的 MacOS 版本是 10.15。
您可以降级 MacOS 版本,也可以升级 Passenger。
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.
You can either downgrade your version of MacOS, or you can upgrade Passenger.