Skip to content

Instantly share code, notes, and snippets.

@ainoya
Last active December 11, 2015 21:28
Show Gist options
  • Save ainoya/4662125 to your computer and use it in GitHub Desktop.
Save ainoya/4662125 to your computer and use it in GitHub Desktop.
Avoiding pry installation failure by installing rdoc gem before install it.
➜ ~ rbenv global 1.9.3-p286
➜ ~ rbenv rehash
➜ ~ gem install pry
Fetching: coderay-1.0.8.gem (100%)
Fetching: slop-3.4.3.gem (100%)
Fetching: method_source-0.8.1.gem (100%)
Fetching: pry-0.9.11.4.gem (100%)
Successfully installed coderay-1.0.8
Successfully installed slop-3.4.3
Successfully installed method_source-0.8.1
Successfully installed pry-0.9.11.4
4 gems installed
Installing ri documentation for coderay-1.0.8...
Installing ri documentation for slop-3.4.3...
Installing ri documentation for method_source-0.8.1...
Installing ri documentation for pry-0.9.11.4...
RDoc::Parser::Ruby failure around line 25 of
lib/pry/commands/ls.rb
Before reporting this, could you check that the file you're documenting
has proper syntax:
/home/hoge/.rbenv/versions/1.9.3-p286/bin/ruby -c lib/pry/commands/ls.rb
RDoc is not a full Ruby parser and will fail when fed invalid ruby programs.
The internal error was:
(NoMethodError) undefined method `name' for #<RDoc::RubyToken::TkDOT:0x000000043f17c8>
ERROR: While generating documentation for pry-0.9.11.4
... MESSAGE: undefined method `name' for #<RDoc::RubyToken::TkDOT:0x000000043f17c8>
... RDOC args: --ri --op /home/hoge/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/doc/pry-0.9.11.4/ri lib --title pry-0.9.11.4 Documentation --
quiet
➜ ~ gem install rdoc
Fetching: rdoc-3.12.gem (100%)
Depending on your version of ruby, you may need to install ruby rdoc/ri data:
<= 1.8.6 : unsupported
= 1.8.7 : gem install rdoc-data; rdoc-data --install
= 1.9.1 : gem install rdoc-data; rdoc-data --install
>= 1.9.2 : nothing to do! Yay!
Successfully installed rdoc-3.12
1 gem installed
Installing ri documentation for rdoc-3.12...
Installing RDoc documentation for rdoc-3.12...
➜ ~ gem install pry
Successfully installed pry-0.9.11.4
1 gem installed
Installing ri documentation for pry-0.9.11.4...
Installing RDoc documentation for pry-0.9.11.4...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment