Can't use rhc after installation , for openshift
Asked Answered
G

5

7

I'm running into a weird issue after installing rhc and vmc. None of the below seems to be working.

For Openshift: https://openshift.redhat.com/app/getting_started

For Cloudfoundry: http://docs.cloudfoundry.com/tools/vmc/installing-vmc.html

I'm using Ubuntu 10.04

root@bose-Vostro-1540:/home/bose# gem install rhc
Successfully installed parseconfig-0.5.2
Successfully installed rhc-0.88.9
2 gems installed
Installing ri documentation for parseconfig-0.5.2...
Installing ri documentation for rhc-0.88.9...
Installing RDoc documentation for parseconfig-0.5.2...
Installing RDoc documentation for rhc-0.88.9...
root@bose-Vostro-1540:/home/bose# rhc
No command 'rhc' found, did you mean:
 Command 'rtc' from package 'nvram-wakeup' (universe)
 Command 'rc' from package 'rc' (universe)
 Command 'rec' from package 'sox' (universe)
 Command 'rcc' from package 'libqt4-dev' (main)
 Command 'rsc' from package 'radare-common' (universe)
 Command 'rvc' from package 'vtgrab' (universe)
rhc: command not found

Griffin answered 11/4, 2012 at 17:33 Comment(0)
F
2

A similar issue has been addressed here. Hope that helps.

Flem answered 11/4, 2012 at 18:16 Comment(0)
P
7

I'm using rbenv, and got the same problem

use gem list to check whether it's installed, if so, maybe you just need find it and add it to your PATH.

like I do this

ln -s /home/fengyl/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/rhc-1.4.8/bin/rhc /home/fengyl/.rbenv/shims/
Plica answered 17/2, 2013 at 7:0 Comment(1)
What is my 'PATH'?Ropedancer
F
5

Try not installing it with sudo.

gem install rhc

worked for me,

sudo gem install rhc

did not. The docs ask you to do the former.

Frontality answered 6/6, 2014 at 16:1 Comment(0)
F
2

A similar issue has been addressed here. Hope that helps.

Flem answered 11/4, 2012 at 18:16 Comment(0)
V
2

I am one of the OpenShift developers working on the client tools and using RVM to test my versions locally with no issues.

If you are using RVM, your $PATH should include something like this (I am using 1.9.3 with a gemset for my client-tools).

$ echo $PATH | tr : \\n 
/home/fotios/.rvm/gems/ruby-1.9.3-p125@client-tools/bin
/home/fotios/.rvm/gems/ruby-1.9.3-p125@global/bin
/home/fotios/.rvm/rubies/ruby-1.9.3-p125/bin
/home/fotios/.rvm/bin
...

$ which rhc
~/.rvm/gems/ruby-1.9.3-p125@client-tools/bin/rhc

If not, there may be a problem with your .bashrc/.profile. Check out the RVM installation notes or run rvm notes to ensure everything is working properly.

Vita answered 17/4, 2012 at 13:53 Comment(0)
B
2

This happens to me right now, none of the current answers solve it.

Here's how I fixed the problem (add ruby gems to your path):

PATH="`ruby -e 'puts Gem.user_dir'`/bin:$PATH"
Blackmun answered 31/1, 2017 at 20:8 Comment(1)
Thank you for the contribution.Griffin

© 2022 - 2024 — McMap. All rights reserved.