我在Rails应用程序中使用的是客运5.3.2。我的开发环境是MacOS 12.1,我使用的是Ruby2.6.6
捆绑安装成功。
当我尝试运行bundle exec passenger start时,我会得到以下消息:
--> 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'对如何解决这个问题有什么建议吗?我在这里的深度太大了。使用优化运行也会得到相同的结果。
谢谢。
发布于 2022-04-08 18:04:13
无法下载https://oss-binaries.phusionpassenger.com/binaries/passenger/by_release/5.3.2/agent-x86_64-macosx-12.1.tar.gz:请求的https://oss-binaries.phusionpassenger.com/binaries/passenger/by_release/5.3.2/agent-x86_64-macosx-12.1.tar.gz返回错误: 404
如果访问5.3.2索引(https://oss-binaries.phusionpassenger.com/binaries/passenger/by_release/5.3.2/),可以看到最高可用的MacOS版本是10.15。
我的开发环境是MacOS 12.1 .
您可以降级您的MacOS版本,也可以升级乘客。
https://stackoverflow.com/questions/71795637
复制相似问题