# undefined method \`path' for Gem:Module (NoMethodError)

**URL:** <https://discuss.rubyonrails.org/t/undefined-method-path-for-gem-module-nomethoderror/54138>\
**Category:** rubyonrails-talk\
**Created:** [September 5, 2010, 12:01pm UTC](https://discuss.rubyonrails.org/t/undefined-method-path-for-gem-module-nomethoderror/54138 "2010-09-05T12:01:04Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![11155](https://avatars.discourse-cdn.com/v4/letter/1/d26b3c/32.png) [@11155](https://discuss.rubyonrails.org/u/11155)\
**Post date:** [September 5, 2010, 12:01pm UTC](https://discuss.rubyonrails.org/t/undefined-method-path-for-gem-module-nomethoderror/54138/1 "2010-09-05T12:01:04Z")

</div>

Hi, when running - 'ruby setup.rb' I get the following error message:

C:\rubygems-1.3.7\>ruby setup.rb C:/rubygems-1.3.7/lib/rubygems/source\_index.rb:68:in installed\_spec\_directories': undefined method `path' for Gem:Module (NoMethodError)

Ruby version is ruby-1.9.2-p0. Any idea ?

Thanks.

Dani

---

<div class="post-metadata">

**Author:** ![11155](https://avatars.discourse-cdn.com/v4/letter/1/d26b3c/32.png) [@11155](https://discuss.rubyonrails.org/u/11155)\
**Post date:** [September 6, 2010, 9:45pm UTC](https://discuss.rubyonrails.org/t/undefined-method-path-for-gem-module-nomethoderror/54138/2 "2010-09-06T21:45:30Z")

</div>

Any help on this ? Dani

---

<div class="post-metadata">

**Author:** ![radhames\_brito](https://avatars.discourse-cdn.com/v4/letter/r/8edcca/32.png) [@radhames\_brito](https://discuss.rubyonrails.org/u/radhames_brito)\
**Post date:** [September 6, 2010, 10:42pm UTC](https://discuss.rubyonrails.org/t/undefined-method-path-for-gem-module-nomethoderror/54138/3 "2010-09-06T22:42:33Z")

</div>

more info please

---

<div class="post-metadata">

**Author:** ![11155](https://avatars.discourse-cdn.com/v4/letter/1/d26b3c/32.png) [@11155](https://discuss.rubyonrails.org/u/11155)\
**Post date:** [September 8, 2010, 10:17pm UTC](https://discuss.rubyonrails.org/t/undefined-method-path-for-gem-module-nomethoderror/54138/4 "2010-09-08T22:17:18Z")

</div>

Thank you all.

UFFFFF, I have managed installing Ruby 1.9.2 & Rails 3 on windows. The following links has helped:

> **[Running Rails 3 on Windows - Accidental Technologist](https://accidentaltechnologist.com/ruby-on-rails/running-rails-3-on-windows/)**
>
> Tweet Well, the long-awaited release of Ruby on Rails 3 is now out and all of the Mac and Linux junkies are busy gem-installing the latest version of the framework.? What about all the lonely Windows developers out there looking through their windows...

and

> **[Ruby 1.9.2 Rails 3, A Clean Install on Windows XP](http://blog.johnivanoff.com/2010/09/ruby-192-rails-3-clean-install-on.html)**
>
> Down loaded rubyinstaller-1.9.2-p0.exe from http://rubyinstaller.org/ and installed it. (this will remove any previously installed gems) C:...

with the combination of the two I did it !.

BUT, I will also try the next to install also on linux (ubuntu).

I just don't understand why it should be that difficult to install rails.

I hope this one will help all windows users.

Dani

---

<div class="post-metadata">

**Author:** ![durumdara](https://avatars.discourse-cdn.com/v4/letter/d/b9bd4f/32.png) [@durumdara](https://discuss.rubyonrails.org/u/durumdara)\
**Post date:** [September 21, 2010, 12:23pm UTC](https://discuss.rubyonrails.org/t/undefined-method-path-for-gem-module-nomethoderror/54138/5 "2010-09-21T12:23:48Z")

</div>

Hi!

This don't help me.

> UFFFFF, I have managed installing Ruby 1.9.2 & Rails 3 on windows. The following links has helped:[Running Rails 3 on Windows - Accidental Technologist](http://accidentaltechnologist.com/ruby-on-rails/running-rails-3-on-wi)… andhttp://johnivanoff.blogspot.com/2010/09/ruby-192-rails-3-clean-instal…

I also tried to install Rails on Win2k3. But every gem operation drop this kind of error:

C:/Ruby192/lib/ruby/site\_ruby/1.9.1/rubygems/source\_index.rb:68:in `installed_sp ec_directories': undefined method `path' for Gem:Module (NoMethodError) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from C:/Ruby192/lib/ruby/site\_ruby/1.9.1/rubygems/ source\_index.rb:58:in `from_installed_gems' &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems.rb:883:in `source\_inde x' &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from C:/Ruby192/lib/ruby/site\_ruby/1.9.1/rubygems/ gem\_path\_searcher.rb:8 1:in `init_gemspecs' &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/ gem_path_searcher.rb:1 3:in `initialize' &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from C:/Ruby192/lib/ruby/site\_ruby/1.9.1/rubygems.rb:841:in `new' &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems.rb:841:in `block in se archer' &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from \<internal:prelude\>:10:in `synchronize' &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems.rb:840:in `searcher' &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from C:/Ruby192/lib/ruby/site\_ruby/1.9.1/rubygems.rb:479:in `find\_files'

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from C:/Ruby192/lib/ruby/site\_ruby/1.9.1/rubygems.rb:983:in `load_plugin s' &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems.rb:1139:in `\<top (requ ired)\>' &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from \<internal:lib/rubygems/custom\_require\>:29:in `require' &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from \<internal:lib/rubygems/custom_require\>:29:in `require' &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from C:/Ruby192/bin/gem:8:in `\<main\>'

What I can do to install rail?

The gem installable with only this:

set RUBYOPT= ruby --disable-gems setup.rb

But I don't know how to install the rails.

This is very disturbing thing. I want to use only RedMine, it needs Rail... ☹

What is the magic you did you can install it?

Thanks: &nbsp;&nbsp;&nbsp;&nbsp;dd

---

<div class="post-metadata">

**Author:** ![radhames\_brito](https://avatars.discourse-cdn.com/v4/letter/r/8edcca/32.png) [@radhames\_brito](https://discuss.rubyonrails.org/u/radhames_brito)\
**Post date:** [September 21, 2010, 2:50pm UTC](https://discuss.rubyonrails.org/t/undefined-method-path-for-gem-module-nomethoderror/54138/6 "2010-09-21T14:50:00Z")

</div>

is not that rails is hard to install , is that rails moves fast, it does not have the constrains we are used to with other frameworks, rails is open source, gems are free and is easy to learn , so rails changes fast, if you read a book or a tutorial today it may not be useful in a month. Other technologies are sedentary because they take much more time to learn , expensive , proprietary and to get advice you have to pay an “expert”. Since everything windows related is sedentary so windows is not ideal for rails.

---

<div class="post-metadata">

**Author:** ![Colin\_Law1](https://avatars.discourse-cdn.com/v4/letter/c/91b2a8/32.png) [@Colin\_Law1](https://discuss.rubyonrails.org/u/Colin_Law1)\
**Post date:** [September 21, 2010, 2:54pm UTC](https://discuss.rubyonrails.org/t/undefined-method-path-for-gem-module-nomethoderror/54138/7 "2010-09-21T14:54:27Z")

</div>

> Hi!
> 
> This don't help me.
> 
> > UFFFFF, I have managed installing Ruby 1.9.2 & Rails 3 on windows. The following links has helped:[Running Rails 3 on Windows - Accidental Technologist](http://accidentaltechnologist.com/ruby-on-rails/running-rails-3-on-wi)… andhttp://johnivanoff.blogspot.com/2010/09/ruby-192-rails-3-clean-instal…
> 
> I also tried to install Rails on Win2k3. But every gem operation drop this kind of error:
> 
> C:/Ruby192/lib/ruby/site\_ruby/1.9.1/rubygems/source\_index.rb:68:in

You must have ruby 1.9.2, this looks like 1.9.1, or is it just a strangely named dir? Use ruby -v to find out.

Colin

---

<div class="post-metadata">

**Author:** ![radhames\_brito](https://avatars.discourse-cdn.com/v4/letter/r/8edcca/32.png) [@radhames\_brito](https://discuss.rubyonrails.org/u/radhames_brito)\
**Post date:** [September 21, 2010, 3:57pm UTC](https://discuss.rubyonrails.org/t/undefined-method-path-for-gem-module-nomethoderror/54138/8 "2010-09-21T15:57:57Z")

</div>

@Colin Law

its weird but thats the correct name of the dir

---

<div class="post-metadata">

**Author:** ![11155](https://avatars.discourse-cdn.com/v4/letter/1/d26b3c/32.png) [@11155](https://discuss.rubyonrails.org/u/11155)\
**Post date:** [September 22, 2010, 8:43am UTC](https://discuss.rubyonrails.org/t/undefined-method-path-for-gem-module-nomethoderror/54138/9 "2010-09-22T08:43:53Z")

</div>

Hi dd,

As I have mentioned above, do what the following link instructs to do:

> **[Running Rails 3 on Windows - Accidental Technologist](https://accidentaltechnologist.com/ruby-on-rails/running-rails-3-on-windows/)**
>
> Tweet Well, the long-awaited release of Ruby on Rails 3 is now out and all of the Mac and Linux junkies are busy gem-installing the latest version of the framework.? What about all the lonely Windows developers out there looking through their windows...

it worked for me.

if the above link does not help, try the following link:

> **[Ruby 1.9.2 Rails 3, A Clean Install on Windows XP](http://blog.johnivanoff.com/2010/09/ruby-192-rails-3-clean-install-on.html)**
>
> Down loaded rubyinstaller-1.9.2-p0.exe from http://rubyinstaller.org/ and installed it. (this will remove any previously installed gems) C:...

Hope this helps.

Regards,

Dani

---

<div class="post-metadata">

**Author:** ![durumdara](https://avatars.discourse-cdn.com/v4/letter/d/b9bd4f/32.png) [@durumdara](https://discuss.rubyonrails.org/u/durumdara)\
**Post date:** [September 22, 2010, 11:48am UTC](https://discuss.rubyonrails.org/t/undefined-method-path-for-gem-module-nomethoderror/54138/10 "2010-09-22T11:48:05Z")

</div>

Hi!

I tried to check the dirs, but this is the real name!

C:\Ruby192\bin\>ruby -v ruby 1.9.2p0 (2010-08-18) [i386-mingw32]

But the directories are "191".

☹

May I can install rail/gem on older versions of ruby?

Thanks: &nbsp;&nbsp;&nbsp;dd

---

<div class="post-metadata">

**Author:** ![durumdara](https://avatars.discourse-cdn.com/v4/letter/d/b9bd4f/32.png) [@durumdara](https://discuss.rubyonrails.org/u/durumdara)\
**Post date:** [September 22, 2010, 12:17pm UTC](https://discuss.rubyonrails.org/t/undefined-method-path-for-gem-module-nomethoderror/54138/11 "2010-09-22T12:17:42Z")

</div>

Hi!

I tried to install previous versions of ruby, and gem. Gem installed. But after I got this:

C:\Ruby187\bin\>gem install rails Successfully installed activesupport-3.0.0 Successfully installed builder-2.1.2 Successfully installed i18n-0.4.1 Successfully installed activemodel-3.0.0 Successfully installed rack-1.2.1 Successfully installed rack-test-0.5.4 Successfully installed rack-mount-0.6.13 Successfully installed tzinfo-0.3.23 Successfully installed abstract-1.0.0 Successfully installed erubis-2.6.6 Successfully installed actionpack-3.0.0 Successfully installed arel-1.0.1 Successfully installed activerecord-3.0.0 Successfully installed activeresource-3.0.0 Successfully installed mime-types-1.16 Successfully installed polyglot-0.3.1 Successfully installed treetop-1.4.8 Successfully installed mail-2.2.6.1 Successfully installed actionmailer-3.0.0 Successfully installed rake-0.8.7 Successfully installed thor-0.14.1 Successfully installed railties-3.0.0 Successfully installed bundler-1.0.0 Successfully installed rails-3.0.0 24 gems installed Installing ri documentation for activesupport-3.0.0... Installing ri documentation for builder-2.1.2... ERROR: While generating documentation for builder-2.1.2 ... MESSAGE: Unhandled special: Special: type=17, text="\<!-- HI --\>" ... RDOC args: --ri --op C:/Ruby187/lib/ruby/gems/1.8/doc/ builder-2.1.2/ri --tit le Builder -- Easy XML Building --main README --line-numbers --quiet lib CHANGES Rakefile README doc/releases/builder-1.2.4.rdoc doc/releases/ builder-2.0.0.rdoc doc/releases/builder-2.1.1.rdoc --title builder-2.1.2 Documentation (continuing with the rest of the installation) Installing ri documentation for i18n-0.4.1... Installing ri documentation for activemodel-3.0.0... Installing ri documentation for rack-1.2.1... Installing ri documentation for rack-test-0.5.4... Installing ri documentation for rack-mount-0.6.13... Installing ri documentation for tzinfo-0.3.23... Installing ri documentation for abstract-1.0.0... Installing ri documentation for erubis-2.6.6... Installing ri documentation for actionpack-3.0.0... Installing ri documentation for arel-1.0.1... Installing ri documentation for activerecord-3.0.0... ERROR: While executing gem ... (Errno::EINVAL) &nbsp;&nbsp;&nbsp;&nbsp;Invalid argument - ./\</cdesc-\<.yaml

C:\Ruby187\bin\>

Hmmmm... I cannot go out from this hell...

dd

---

<div class="post-metadata">

**Author:** ![radhames\_brito](https://avatars.discourse-cdn.com/v4/letter/r/8edcca/32.png) [@radhames\_brito](https://discuss.rubyonrails.org/u/radhames_brito)\
**Post date:** [September 22, 2010, 12:31pm UTC](https://discuss.rubyonrails.org/t/undefined-method-path-for-gem-module-nomethoderror/54138/12 "2010-09-22T12:31:23Z")

</div>

thats the documentation, it should stop you from doing anything

---

<div class="post-metadata">

**Author:** ![radhames\_brito](https://avatars.discourse-cdn.com/v4/letter/r/8edcca/32.png) [@radhames\_brito](https://discuss.rubyonrails.org/u/radhames_brito)\
**Post date:** [September 22, 2010, 12:31pm UTC](https://discuss.rubyonrails.org/t/undefined-method-path-for-gem-module-nomethoderror/54138/13 "2010-09-22T12:31:47Z")

</div>

sorry

---

<div class="post-metadata">

**Author:** ![durumdara](https://avatars.discourse-cdn.com/v4/letter/d/b9bd4f/32.png) [@durumdara](https://discuss.rubyonrails.org/u/durumdara)\
**Post date:** [September 23, 2010, 6:41am UTC](https://discuss.rubyonrails.org/t/undefined-method-path-for-gem-module-nomethoderror/54138/14 "2010-09-23T06:41:30Z")

</div>

Hi!

I solved the problem. But very hard to install redmine to Windows. First: the ruby must be 1.8.7 Next: the gem is in installer is the only gem what usable for it. And: the rails must be a specific version. And: because of Windows, all of the gem installations (for example: mongrel) needs to define platform, because there is no make in Windows. And: use mysql than pgsql.

Thanks for your help: &nbsp;&nbsp;&nbsp;dd
