在CentOS 7上进行清洁安装。
在~/.rvm中安装了RVM作为新的用户乘客
所有托管的站点都由Apache用户拥有。
安装有2颗红宝石的RVM:
我在默认的Ruby1.9.3中将用户安装并编译为gem。
但是,在使用Ruby2.3.0的站点上,我一直在我的/var/log/httpd/error_log中获得这些条目:
App 12909 stdout:
App 12909 stderr: [passenger_native_support.so] trying to compile for the current user (apache) and Ruby interpreter...
App 12909 stderr: (set PASSENGER_COMPILE_NATIVE_SUPPORT_BINARY=0 to disable)
App 12909 stderr: Warning: compilation didn't succeed. To learn why, read this file:
App 12909 stderr: /tmp/passenger_native_support-bqcp0n.log
App 12909 stderr: [passenger_native_support.so] finding downloads for the current Ruby interpreter...
App 12909 stderr:
App 12909 stderr: (set PASSENGER_DOWNLOAD_NATIVE_SUPPORT_BINARY=0 to disable)
App 12909 stderr: Could not download https://oss-binaries.phusionpassenger.com/binaries/passenger/by_release/5.0.26/rubyext-ruby-2.3.0-x86_64-linux.tar.gz: The requested URL returned error: 404 Not Found
App 12909 stderr: Trying next mirror...
App 12909 stderr: Could not download https://s3.amazonaws.com/phusion-passenger/binaries/passenger/by_release/5.0.26/rubyext-ruby-2.3.0-x86_64-linux.tar.gz: The requested URL returned error: 403 Forbidden
App 12909 stderr: [passenger_native_support.so] will not be used (can't compile or download)
App 12909 stderr: --> Passenger will still operate normally.现在,通常您只需运行passenger-config build-native-support,但这显然只适用于内置客运创业板的Ruby环境(= 1.9.3)。
如何为所有已安装的RVM版本构建本机支持并消除此错误?
发布于 2016-03-08 16:15:11
使用您希望为之编译的Ruby,简单地运行‘客运-配置构建-本机支持’。
例如:
rvm use 2.3.0
ruby /path-to-passenger-config build-native-support乘客不在乎你以前安装的是哪个Ruby。您可以在任何Ruby中使用客运,不管您以前安装的是哪个Ruby。rubies.html
https://stackoverflow.com/questions/35869809
复制相似问题