0

正在尝试安装 Openshift Origin。

以下: http: //openshift.github.io/documentation/oo_deployment_guide_comprehensive.html#install-the-web-console-rpms

  1. 测试配置 http://127.0.0.1/console

开始更多信息

注意:问题似乎与我机器上两个不同版本的 rake 有关,因为有人好心建议我运行这些命令**

yum info rubygem-rake

名称:rubygem-rake 版本:0.8.7 发布:2.1.el6 来自 repo:rhel-6-server-optional-rpms

yum info ruby193-rubygem-rake

名称:ruby193-rubygem-rake 版本:0.9.2.2 发布:38.el6 来自 repo:openshift-origin-deps

结束附加信息

原始问题:当我转到控制台目录时

cd /var/www/openshift/console

bundle --local
我收到消息:

Your bundle is complete! Use bundle show [gemname] to see where a bundled gem is installed.

该网站指出:

错误消息: 在任何源中都找不到 rake-10.1.0 (Bundler::GemNotFound) 异常类:PhusionPassenger::UnknownError 应用程序根目录:/var/www/openshift/console

# File Line Location 0 /opt/rh/ruby193/root/usr/share/gems/gems/bundler-1.1.4/lib/bundler/spec_set.rb 90 in在物化中阻止' 1 /opt/rh/ruby193/root/usr/share/gems/gems/bundler-1.1.4/lib/bundler/spec_set.rb 83 在map!' 2 /opt/rh/ruby193/root/usr/share/gems/gems/bundler-1.1.4/lib/bundler/spec_set.rb 83 in物化中' 3 /opt/rh/ruby193/root/usr /share/gems/gems/bundler-1.1.4/lib/bundler/definition.rb 127 in specs' 4 /opt/rh/ruby193/root/usr/share/gems/gems/bundler-1.1.4/lib/bundler/definition.rb 172 inspecs_for' 5 /opt/rh/ruby193/root/usr/share/gems/gems/bundler-1.1.4/lib/ bundler/definition.rb 161 在requested_specs' 6 /opt/rh/ruby193/root/usr/share/gems/gems/bundler-1.1.4/lib/bundler/environment.rb 23 inrequested_specs' 7 /opt/rh/ruby193/root/usr/share/gems/gems/bundler-1.1.4/lib/bundler/runtime.rb 11 在setup' 8 /opt/rh/ruby193/root/usr/share/gems/gems/bundler-1.1.4/lib/bundler.rb 107 insetup' 9 /opt/rh/ ruby193/root/usr/share/gems/gems/passenger-3.0.21/lib/phusion_passenger/utils.rb 326 in prepare_app_process' 10 /opt/rh/ruby193/root/usr/share/gems/gems/passenger-3.0.21/lib/phusion_passenger/rack/application_spawner.rb 156 ininitialize_server' 11 /opt/rh/ruby193/root/usr/share/gems/gems/passenger -3.0.21/lib/phusion_passenger/utils.rb 563 在report_app_init_status' 12 /opt/rh/ruby193/root/usr/share/gems/gems/passenger-3.0.21/lib/phusion_passenger/rack/application_spawner.rb 154 ininitialize_server' 13 /opt/rh/ruby193/root/usr/share/gems/gems/passenger-3.0.21/lib/phusion_passenger/abstract_server.rb 204 in start_synchronously' 14 /opt/rh/ruby193/root/usr/share/gems/gems/passenger-3.0.21/lib/phusion_passenger/abstract_server.rb 180 instart' 15 /opt/rh/ruby193/root/usr/share /gems/gems/passenger-3.0.21/lib/phusion_passenger/rack/application_spawner.rb 129 在start' 16 /opt/rh/ruby193/root/usr/share/gems/gems/passenger-3.0.21/lib/phusion_passenger/spawn_manager.rb 253 inspawn_rack_application' 17 中的块(2 级)/opt/rh/ruby193/root/usr/share/gems/gems/passenger- 3.0.21/lib/phusion_passenger/abstract_server_collection.rb 132 in lookup_or_add' 18 /opt/rh/ruby193/root/usr/share/gems/gems/passenger-3.0.21/lib/phusion_passenger/spawn_manager.rb 246 inspawn_rack_application' 19 /opt/rh/ruby193/root/usr/share/gems/gems/passenger-3.0.21/lib/phusion_passenger/abstract_server_collection.rb 82 inblock in synchronize' 20 prelude> 10:in同步' 21 /opt/rh/ruby193/root/usr/share/gems/gems/passenger-3.0.21/lib/phusion_passenger/abstract_server_collection.rb 79 insynchronize' 22 /opt/rh/ruby193/root/usr/share/gems/gems/passenger-3.0.21/lib/phusion_passenger/spawn_manager.rb 244 inspawn_rack_application' 23 /opt/rh/ruby193/root/usr/share/gems/gems/passenger-3.0.21/lib/phusion_passenger/spawn_manager.rb 137 in spawn_application' 24 /opt/rh/ruby193/root/usr/share/gems/gems/passenger-3.0.21/lib/phusion_passenger/spawn_manager.rb 275 inhandle_spawn_application' 25 /opt/rh/ruby193/root/usr/share /gems/gems/passenger-3.0.21/lib/phusion_passenger/abstract_server.rb 357 in server_main_loop' 26 /opt/rh/ruby193/root/usr/share/gems/gems/passenger-3.0.21/lib/phusion_passenger/abstract_server.rb 206 instart_synchronously' 27 /opt/rh/ruby193/root/usr/share/gems/gems/passenger-3.0.21/helper-scripts/ `乘客生成服务器102

4

1 回答 1

0

Here are some hints... I spent many hours, and attempted many solutions. Here is what I found.

  1. Two versions of ruby were on the machine, and even though ruby --version showed the correct 1.9.3 version, it appears that there was a conflicting version 1.8.7 that would run if I attempted bundle install. So, I removed it.
  2. Many duplicate gems, and for some reason, after I removed 1.8.7, if I performed a bundle install, it would begin installing gems that were of too new a version. So, I was required to gem list followed by yum list *rubygem*[gemnname]* to make sure that I only had one version of a gem, and it matched the one from the ruby193 repository. If I found:

yum list *rubygem*rdisc*

ruby193-rubygem-rdiscount.x86_64 1.6.8-2.el6_3 @openshift-origin-deps

gem list rdisc

* LOCAL GEMS *

rdiscount (1.7.2,1.6.8)

I would delete 1.7.2

gem uninstall rdiscount --version 1.7.2

DON'T FORGET

  1. service openshift-broker restart
  2. service openshift-console restart

After each one.

于 2013-09-23T14:11:37.233 回答