Bug 844410 - having rvm installed on the machine can cause install errors for rhc
Summary: having rvm installed on the machine can cause install errors for rhc
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: oc
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ---
: ---
Assignee: Clayton Coleman
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-07-30 14:04 UTC by Steven Citron-Pousty
Modified: 2015-05-15 02:22 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-10-17 13:26:47 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Steven Citron-Pousty 2012-07-30 14:04:21 UTC
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.

Comment 1 Clayton Coleman 2012-07-30 14:10:27 UTC
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.

Comment 2 Clayton Coleman 2012-07-30 18:45:56 UTC
Investigating is medium severity (determine if there is a fundamental RVM problem), workaround is lower severity, documentation is medium severity

Comment 3 Steven Citron-Pousty 2012-07-31 06:35:00 UTC
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

Comment 4 Wei Sun 2012-07-31 09:31:15 UTC
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

Comment 5 Clayton Coleman 2012-07-31 16:55:36 UTC
Documentation is updated, moving this to medium/low pri/sev so we can detect the error in the future.

Comment 6 manoj 2013-09-18 18:49:18 UTC
Please verify if this occurs with the latest version of rhc

Comment 7 weiwei jiang 2013-09-22 03:15:23 UTC
Tried via latest version of rhc(1.15.0) & rvm 1.9.6 & ruby 2.0.0, and work well, so verify this.


Note You need to log in before you can comment on or make changes to this bug.