2

I am new to OpenShift and I'm trying to install RHC gems with:

$ sudo gem install rhc

which show up are successfully installed, however by the time it installs the documentation the process does not seem to end. By this point I rum

$ sudo rhc setup

And it does not recognise the command. I have Ruby and Git both running on my mac so I do not understand why it does not work.

Something that I am missing?

EDITED:

It seems to get stuck in the documentation installation:

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$
4

1 回答 1

1

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

当您的终端返回MacBook-Pro-2:~ User$提示时,这意味着它已成功完成安装。

另外,如果您使用的是 RVM 或 RBENV,那么您不需要sudo gem install rhc,否则 rhc 正在安装到您的系统 ruby​​ 中,并且当您rhc setup以使用 rvm 或 rbenv 的用户身份运行时,它不会在你的路径。尝试gem install rhc以普通用户的身份运行,看看它说了什么。如果您可以rvm --version作为普通用户运行并获得输出而不是错误,那么这很可能是您的问题(或带有 rbenv 的类似命令...

我还在上面编辑了您的命令,使其顺序正确。

于 2014-06-09T00:34:36.213 回答