Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't use rhc after installation , for openshift

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

like image 383
sbose Avatar asked Apr 11 '12 17:04

sbose


1 Answers

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/
like image 63
fengyl Avatar answered Sep 27 '22 16:09

fengyl