Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

issue occurring while installing gem

Tags:

rubygems

I am trying to install '''sudo gem install soap4r'''

But am facing the below issue..

Successfully installed httpclient-2.2.4

Successfully installed soap4r-1.5.8

2 gems installed

Installing ri documentation for httpclient-2.2.4...


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:0xb6598024>
like image 928
sangeethkumar Avatar asked Mar 05 '12 06:03

sangeethkumar


People also ask

How do I fix a run bundle to install missing gems?

Select Tools | Bundler | Install from the main menu. Open the Gemfile, place the caret at any highlighted gem missing in the project SDK and press Alt+Enter . Select Install missing gems using 'bundler' and press Enter .

How do I know if gem is installed?

Since your goal is to verify a gem is installed with the correct version, use gem list . You can limit to the specific gem by using gem list data_mapper . To verify that it's installed and working, you'll have to try to require the gem and then use it in your code.

How do I install gem packages?

To install a gem, use gem install [gem] . Browsing installed gems is done with gem list . For more information about the gem command, see below or head to RubyGems' docs. There are other sources of libraries though.


1 Answers

Don't worry about it too much, it only failed trying to install the ri documentation for the gem, but as it states, the gem itself installed successfully. If you don't use ri/Rdoc, you can pass --no-rdoc --no-ri when running gem install to skip installing the local documentation, or you can modify your .gemrc file to make it the default.

like image 82
Andrew Marshall Avatar answered Oct 08 '22 00:10

Andrew Marshall