rhc install problem

Why am I getting a “RDoc failure in lib/httpclient.rb” while trying to install or upgrade the rhc client tools?


When running “sudo gem install/update rhc” to install/upgrade the rhc client, the following error is thrown:

11:58:01:~::sudo gem update rhc
Password: xxxxxx
Updating installed gems
Updating rhc
If this is your first time installing the RHC tools, please run 'rhc setup'
Successfully installed httpclient-2.3.2
Successfully installed rhc-1.3.8
Gems updated: httpclient, rhc
Installing ri documentation for httpclient-2.3.2...
RDoc failure in lib/httpclient.rb at or around line 405 column 16
Before reporting this, could you check that the file
you're documenting compiles cleanly--RDoc is not a
full Ruby parser, and gets confused easily if fed
invalid programs.
The internal error was:
ERROR:  While executing gem ... (NoMethodError)
   undefined method `name' for #<RubyToken::TkLPAREN:0x1041fa8d8>

Although the error is thrown, rhc client tools should successfully get installed/upgraded, but when in doubt, add the –no-rdoc and –no-ri flag to you install or update command like so:

sudo gem install rhc –no-rdoc –no-ri
sudo gem update rhc –no-rdoc –no-ri

by sannam on February 7, 2013 at 18:06 PM

Login to post comments

Posted July 29, 2013 at 11:31 PM #

It seems to be better solution to run sudo gem install rdoc before installing rhc. See the source of the solution: https://github.com/rdoc/rdoc/issues/175 .

Login to post comments

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s