Bug 814811 - rake is now a requirement on some platforms before installing rhc gem.
Summary: rake is now a requirement on some platforms before installing rhc gem.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: oc
Version: 2.x
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: ---
Assignee: Fotios Lindiakos
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-04-20 18:36 UTC by Nam Duong
Modified: 2015-05-15 01:51 UTC (History)
6 users (show)

Fixed In Version: rhc-0.91.8
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-04-27 20:47:13 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Nam Duong 2012-04-20 18:36:14 UTC
Description of problem:
This has been reported in 2 different forum posts:
1) https://www.redhat.com/openshift/community/forums/openshift/update-getting-started-documentation-to-also-install-rake-gem-before-installing-the
2) https://www.redhat.com/openshift/community/forums/openshift/rhc-not-working-after-install-client-tools-centos-5

This is odd since I didn't need the rake gem on my Mac, but it was definitely needed on CentOS and Ubuntu.

We need to update our getting started guides or possibly have it automatically installed as a dependency.

Comment 1 Clayton Coleman 2012-04-20 18:40:55 UTC
Rake shouldn't be a dependency to runtime users

Comment 2 Fotios Lindiakos 2012-04-24 17:17:57 UTC
Because of the way gem installs the native extensions, rake is unfortunately required. Since this is a pretty standard gem, this shouldn't be a problem for most users. This does not affect RPM installation (or dependencies) since the extension does not get executed.

Comment 3 David O'Brien 2012-04-26 01:19:04 UTC
Bilhar,
can you review this and patch the GSG where appropriate?

thanks

Comment 4 bzhao 2012-04-26 08:37:31 UTC
I think it have still the ERROR about missing rake on windows7, i still need to carry out "gem install rake" and then i can execute the "gem install rhc" successfully..
env:
Windows7 Ultimate 64-bit SP1 Eng
cygwin 1.7.14-2
rubygems 1.8.23
rhc-0.91.10.gem or rhc-0.91.8.gem

See details below:
====>>   gem instal rhc rhc-0.91.10.gem -l
ERROR:  While executing gem ... (Gem::DependencyError)
    Unable to resolve dependencies: rhc requires rake (>= 0)
=============================
$ gem instal rhc rhc-0.91.8.gem -l
ERROR:  While executing gem ... (Gem::DependencyError)
    Unable to resolve dependencies: rhc requires rake (>= 0)

Comment 5 bzhao 2012-04-26 09:00:01 UTC
I think it should be my VM issue, i switch to the another VM and execute "gem install rhc-0.91.10.gem", rake and rhc could be installed automatically without any error..

So it is fixed..

See details below:
$ gem install rhc-0.91.10.gem
Fetching: rake-0.9.2.2.gem (100%)
Building native extensions.  This could take a while...
      ===================================================
        rhc-rest is no longer needed as an external gem
          - If it is installed, it will be removed
          - Its libraries are now included in rhc
            - Any applications requiring rhc-rest will
              still function as expected
      ===================================================
Successfully installed rake-0.9.2.2
Successfully installed rhc-0.91.10
2 gems installed
Installing ri documentation for rake-0.9.2.2...
Installing ri documentation for rhc-0.91.10...
Installing RDoc documentation for rake-0.9.2.2...
Installing RDoc documentation for rhc-0.91.10...

Comment 6 Bilhar 2012-04-27 06:05:11 UTC
Does this mean this is not an issue on Windows machines?  Please confirm so that we can document correctly.  Also we state that we have added rake as a dependency in rhc as of version 0.91.8 to solve this in this forum:  http://hurl.test.redhat.com/TofGnL

But I still had these issues on newer versions (0.92.1) of client tools on Fedora and RHEL.  After installing client tools, I got error messages for rake.  Then I did a gem install rake, and after that I was able to use the client tools without any issues.  It doesn't appear that the dependency is resolved, or am I missing something?

Also, can someone please clarify which operating systems are affected by this?  I have tested on RHEL and Fedora and had rake issues. But I can't get rhc to update on Mac OS.  And on Ubuntu I can only get version 0.90.7 of rhc to install. It doesn't update to a newer version for some reason.

Can someone please help?  I'm just trying to gather as much information as possible to correctly document this in the Getting Started Guide.

Comment 7 Fotios Lindiakos 2012-04-27 12:47:52 UTC
What error messages did you get and what did you try to run? I just installed this on Ubuntu (with no other gems installed) and it worked fine: http://pastebin.test.redhat.com/86976

(In reply to comment #6)
> Does this mean this is not an issue on Windows machines?  Please confirm so
> that we can document correctly.  Also we state that we have added rake as a
> dependency in rhc as of version 0.91.8 to solve this in this forum: 
> http://hurl.test.redhat.com/TofGnL
> 
> But I still had these issues on newer versions (0.92.1) of client tools on
> Fedora and RHEL.  After installing client tools, I got error messages for rake.
>  Then I did a gem install rake, and after that I was able to use the client
> tools without any issues.  It doesn't appear that the dependency is resolved,
> or am I missing something?
> 
> Also, can someone please clarify which operating systems are affected by this? 
> I have tested on RHEL and Fedora and had rake issues. But I can't get rhc to
> update on Mac OS.  And on Ubuntu I can only get version 0.90.7 of rhc to
> install. It doesn't update to a newer version for some reason.
> 
> Can someone please help?  I'm just trying to gather as much information as
> possible to correctly document this in the Getting Started Guide.


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