无法安装Openshift RHC工具

时间:2014-06-08 10:03:54

标签: openshift openshift-client-tools

我是OpenShift的新手,我试图安装RHC宝石:

$ sudo gem install rhc
显示已成功安装的

,但是当它安装文档时,该过程似乎没有结束。到此为止我朗姆酒

$ sudo rhc setup

它无法识别命令。我有Ruby和Git都在我的mac上运行所以我不明白为什么它不起作用。

我遗失的东西?

已编辑:

似乎陷入了文档安装:

MacBook-Pro-2:~ User$ gem install rhc
Fetching: net-ssh-2.9.1.gem (100%)
Fetching: net-scp-1.2.1.gem (100%)
Fetching: net-ssh-gateway-1.2.0.gem (100%)
Fetching: net-ssh-multi-1.2.0.gem (100%)
Fetching: archive-tar-minitar-0.5.2.gem (100%)
Fetching: highline-1.6.21.gem (100%)
Fetching: commander-4.2.0.gem (100%)
Fetching: httpclient-2.4.0.gem (100%)
Fetching: open4-1.3.4.gem (100%)
Fetching: rhc-1.25.2.gem (100%)
===========================================================================

If this is your first time installing the RHC tools, please run 'rhc setup'

===========================================================================
Successfully installed net-ssh-2.9.1
Successfully installed net-scp-1.2.1
Successfully installed net-ssh-gateway-1.2.0
Successfully installed net-ssh-multi-1.2.0
Successfully installed archive-tar-minitar-0.5.2
Successfully installed highline-1.6.21
Successfully installed commander-4.2.0
Successfully installed httpclient-2.4.0
Successfully installed open4-1.3.4
Successfully installed rhc-1.25.2
10 gems installed
Installing ri documentation for net-ssh-2.9.1...
Installing ri documentation for net-scp-1.2.1...
Installing ri documentation for net-ssh-gateway-1.2.0...
Installing ri documentation for net-ssh-multi-1.2.0...
Installing ri documentation for archive-tar-minitar-0.5.2...
Installing ri documentation for highline-1.6.21...
Installing ri documentation for commander-4.2.0...
Installing ri documentation for httpclient-2.4.0...
Installing ri documentation for open4-1.3.4...
Installing ri documentation for rhc-1.25.2...
Installing RDoc documentation for net-ssh-2.9.1...
Installing RDoc documentation for net-scp-1.2.1...
Installing RDoc documentation for net-ssh-gateway-1.2.0...
Installing RDoc documentation for net-ssh-multi-1.2.0...
Installing RDoc documentation for archive-tar-minitar-0.5.2...
Installing RDoc documentation for highline-1.6.21...
Installing RDoc documentation for commander-4.2.0...
Installing RDoc documentation for httpclient-2.4.0...
Installing RDoc documentation for open4-1.3.4...
Installing RDoc documentation for rhc-1.25.2...
MacBook-Pro-2:~ User$

1 个答案:

答案 0 :(得分:1)

看起来安装得很好,您现在需要运行rhc setup命令来完成设置。命令rhc setuprhc --version作为输出显示什么?

当您的终端返回MacBook-Pro-2:~ User$提示符时,表示已成功安装。

此外,如果您使用的是RVM或RBENV,则无需sudo gem install rhc,或者您的系统ruby上安装了rhc,并且当您以用户身份运行rhc setup时,这是使用rvm或rbenv,然后它将不在您的路径中。尝试仅以普通用户身份运行gem install rhc并查看其内容。如果您可以作为常规用户运行rvm --version并获取输出而不是错误,那么这很可能是您的问题(或者与rbenv类似的命令......

我也按照正确的顺序编辑了上面的命令。