# \[Bug #3410\] rubygems.rb$B$G(B undefined method \`path'

**URL:** <https://www.ruby-forum.com/t/bug-3410-rubygems-rb-b-g-b-undefined-method-path/189828>\
**Category:** Development\
**Created:** [June 8, 2010, 2:49pm UTC](https://www.ruby-forum.com/t/bug-3410-rubygems-rb-b-g-b-undefined-method-path/189828 "2010-06-08T14:49:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tohru\_Hashimoto](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/58956e/32.png) [@Tohru\_Hashimoto](https://www.ruby-forum.com/u/Tohru_Hashimoto)\
**Post date:** [June 8, 2010, 2:49pm UTC](https://www.ruby-forum.com/t/bug-3410-rubygems-rb-b-g-b-undefined-method-path/189828/1 "2010-06-08T14:49:55Z")

</div>

Bug #3410: rubygems.rbe$B$Ge(B undefined method `path’  
[http://redmine.ruby-lang.org/issues/show/3410](http://redmine.ruby-lang.org/issues/show/3410)

e$B5/I\<\<Te(B: Tohru Hashimoto  
e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal  
ruby -v: ruby 1.9.2dev (2010-06-08) [x86\_64-linux]

rubygemse$B$,F0$+$J$$$h$&$G$9!#e(B

[root@localhost ~]# gem  
/usr/local/lib/ruby/1.9.1/rubygems.rb:607:in `path': undefined method `path’ for #Gem::ConfigFile:0x00000012e25998 (NoMethodError)  
from /usr/local/lib/ruby/1.9.1/rubygems/source\_index.rb:68:in  
`installed_spec_directories' from /usr/local/lib/ruby/1.9.1/rubygems/source_index.rb:58:in `from\_installed\_gems’  
from /usr/local/lib/ruby/1.9.1/rubygems.rb:855:in `source_index' from /usr/local/lib/ruby/1.9.1/rubygems/gem_path_searcher.rb:81:in `init\_gemspecs’  
from  
/usr/local/lib/ruby/1.9.1/rubygems/gem\_path\_searcher.rb:13:in  
`initialize' from /usr/local/lib/ruby/1.9.1/rubygems.rb:813:in `new’  
from /usr/local/lib/ruby/1.9.1/rubygems.rb:813:in `block in searcher' from <internal:prelude>:10:in `synchronize’  
from /usr/local/lib/ruby/1.9.1/rubygems.rb:812:in `searcher' from /usr/local/lib/ruby/1.9.1/rubygems.rb:479:in `find\_files’  
from /usr/local/lib/ruby/1.9.1/rubygems.rb:955:in `load_plugins' from /usr/local/lib/ruby/1.9.1/rubygems.rb:1130:in `\<top  
(required)\>’  
from internal:lib/rubygems/custom\_require:29:in `require' from <internal:lib/rubygems/custom_require>:29:in `require’  
from internal:gem\_prelude:153:in `load_full_rubygems_library' from <internal:gem_prelude>:198:in `try\_activate’  
from internal:lib/rubygems/custom\_require:33:in `rescue in require' from <internal:lib/rubygems/custom_require>:29:in `require’  
from /usr/local/lib/ruby/1.9.1/rubygems/config\_file.rb:50:in  
`<class:ConfigFile>' from /usr/local/lib/ruby/1.9.1/rubygems/config_file.rb:28:in `\<top (required)\>’  
from internal:lib/rubygems/custom\_require:29:in `require' from <internal:lib/rubygems/custom_require>:29:in `require’  
from /usr/local/lib/ruby/1.9.1/rubygems/gem\_runner.rb:8:in `<top (required)>' from <internal:lib/rubygems/custom_require>:29:in `require’  
from internal:lib/rubygems/custom\_require:29:in `require' from /usr/local/bin/gem:9:in `’

e$B$=$l$G$O!#e(B

---

<div class="post-metadata">

**Author:** ![Tohru\_Hashimoto](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/58956e/32.png) [@Tohru\_Hashimoto](https://www.ruby-forum.com/u/Tohru_Hashimoto)\
**Post date:** [June 8, 2010, 3:15pm UTC](https://www.ruby-forum.com/t/bug-3410-rubygems-rb-b-g-b-undefined-method-path/189828/2 "2010-06-08T15:15:42Z")

</div>

e$B%A%1%C%He(B #3410 e$B$,99?7$5$l$^$7$?!#e(B (by Yui NARUSE)

e$B%9%F!\<%?%9e(B Opene$B$+$ie(BClosede$B$KJQ99e(B

## fixed in r27667 and r28230. Thank you for your report.

[http://redmine.ruby-lang.org/issues/show/3410](http://redmine.ruby-lang.org/issues/show/3410)
