我正在RHEL6.3 x64上配置Puppet-master版本(3.7.3),我需要在一步中安装Phusion Passenger。
(ref: https://docs.puppetlabs.com/guides/passenger.html)
但在
期间“宝石安装架乘客”的步骤我正面临下面的问题:
ERROR: Loading command: install (LoadError)
cannot load such file -- zlib
ERROR: While executing gem ... (NoMethodError)
undefined method `invoke_with_build_args' for nil:NilClass
我在Google搜索了很多,据说zlib库需要重新安装。我重新安装了千次但没有运气。
然后我想我应该直接从以下链接中提到的官方回购安装乘客:
https://www.phusionpassenger.com/documentation/Users%20guide%20Apache.html
但在yum install mod_passenger
的步骤中,我面临以下问题:
---> Package rubygem-daemon_controller.noarch 0:1.0.0-1.1.el6 will be installed
---> Package rubygem-passenger-native-libs.x86_64 1:3.0.19-1.el6_1.8.7.352 will be installed
--> Processing Dependency: ruby = 1.8.7.352 for package: 1:rubygem-passenger-native-libs-3.0.19-1.el6_1.8.7.352.x86_64
--> Finished Dependency Resolution
Error: Package: 1:rubygem-passenger-native-libs-3.0.19-1.el6_1.8.7.352.x86_64 (passenger)
Requires: ruby = 1.8.7.352
Installed: ruby-1.8.7.374-3.el6_6.x86_64 (@rhel-6-server-rpms)
ruby = 1.8.7.374-3.el6_6
Available: ruby-1.8.7.299-4.el6.x86_64 (rhel-6-server-rpms)
ruby = 1.8.7.299-4.el6
Available: ruby-1.8.7.299-5.el6_0.1.x86_64 (rhel-6-server-rpms)
ruby = 1.8.7.299-5.el6_0.1
Available: ruby-1.8.7.299-7.el6.x86_64 (rhel-6-server-rpms)
ruby = 1.8.7.299-7.el6
Available: ruby-1.8.7.299-7.el6_1.1.x86_64 (rhel-6-server-rpms)
ruby = 1.8.7.299-7.el6_1.1
Available: ruby-1.8.7.352-3.el6.x86_64 (rhel-6-server-rpms)
ruby = 1.8.7.352-3.el6
Available: ruby-1.8.7.352-4.el6_2.x86_64 (rhel-6-server-rpms)
ruby = 1.8.7.352-4.el6_2
Available: ruby-1.8.7.352-7.el6_2.x86_64 (rhel-6-server-rpms)
还有一些依赖项,例如rubygem(rake)> = 0.8.1和libev.so.4()(64位),我使用单个RPM搜索和安装。
现在,我不知道如何解决这个问题。任何建议在这里都会非常有用。
Puppet -V:3.7.3
ruby 2.1.5p273(2014-11-13修订版48405)
宝石 - 版本:2.4.4
RHEL 6.3 x64
谢谢!