Why am I getting a “RDoc failure in lib/httpclient.rb” while trying to install or upgrade the rhc client tools?
Code:
KB-E1079
Issue:
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>
Resolution:
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
Advertisements
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 .