我是OpenShift新手,我正在尝试用以下命令安装RHC:
$ sudo gem install rhc显示的已成功安装,但是当它安装文档时,该过程似乎并未结束。在这一点上,我朗姆酒
$ sudo rhc setup并且它不识别该命令。我的mac上同时运行着Ruby和Git,所以我不明白为什么它不能工作。
我遗漏了什么吗?
编辑:
它似乎卡在文档安装中:
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$发布于 2014-06-09 08:34:36
看起来它安装得很好,你现在需要运行rhc setup命令来完成设置。命令rhc setup或rhc --version的输出显示什么?
当您的终端返回到MacBook-Pro-2:~ User$提示符时,这意味着它已成功安装。
此外,如果你正在使用RVM或RBENV,那么你不需要sudo gem install rhc,否则rhc将被安装到你的系统ruby中,当你以用户身份运行rhc setup时,它将不会出现在你的路径中。试着以普通用户的身份运行gem install rhc,看看它会显示什么。如果您可以以常规用户身份运行rvm --version并获得输出而不是错误,这很可能是您的问题(或使用rbenv...
我还按照正确的顺序编辑了上面的命令。
https://stackoverflow.com/questions/24105016
复制相似问题