Description of problem: If a user has rvm already installed they can actually install rhc but then find out the system can not see rhc. Here is the usual error message /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:777:in `report_activate_error': Could not find RubyGem rhc (>= 0) (Gem::LoadError) from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:211:in `activate' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:1056:in `gem' from /usr/bin/rhc:18 Version-Release number of selected component (if applicable): 0.95.4 How reproducible: Not sure Steps to Reproduce: 1. 2. 3. Actual results: Expected results: rhc should just work Additional info: Clayton said this in the email exchange: We can add some guards in the rhc bin file once we finish the refactor (right now it's in too many places to guard easily) to catch scenarios like this. Steven, open a bug to me on this.
We should add an RVM addendum to the client instructions page, and maybe a link out from the app/getting_started page as well. Also rbenv if that differs.
Investigating is medium severity (determine if there is a fundamental RVM problem), workaround is lower severity, documentation is medium severity
So I think the doc needs to talk a bit about rvm, since not everyone who uses it understands how to manage gems inside of it. Here is doc I got from a rails committer today: 1) first they should do "rvm gemset use global" 2) "gem install rhc" They shouldn't need sudo but if they do use: rvmsudo gem install rhc This will install globally for the current ruby version - but it needs to be repeated for every other ruby version they want to use the rhc tools with
I installed rvm-1.11.3.5,ruby-1.9.3,rhc-0.96.5 on RHEL5.8,but can't reproduce this bug. [root@localhost ~]# gem list|grep rvm rvm (1.11.3.5) [root@localhost ~]# gem list|grep rhc rhc (0.96.5) [root@localhost ~]# which rhc /usr/local/rvm/gems/ruby-1.9.3-p194/bin/rhc [root@localhost ~]# rhc rhc rhc-create-app rhc-ctl-domain rhc-port-forward rhc-tail-files rhc-app rhc-create-domain rhc-domain rhc-snapshot rhc-user-info rhc-chk rhc-ctl-app rhc-domain-info rhc-sshkey
Documentation is updated, moving this to medium/low pri/sev so we can detect the error in the future.
Please verify if this occurs with the latest version of rhc
Tried via latest version of rhc(1.15.0) & rvm 1.9.6 & ruby 2.0.0, and work well, so verify this.