Undefined method `path' for Gem:Module (NoMethodError)

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

Any help on this ?
Dani

more info please

Thank you all.

UFFFFF, I have managed installing Ruby 1.9.2 & Rails 3 on windows.
The following links has helped:
http://accidentaltechnologist.com/ruby-on-rails/running-rails-3-on-windows/
and
http://johnivanoff.blogspot.com/2010/09/ruby-192-rails-3-clean-install-on.html

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

Hi!

This don’t help me.

UFFFFF, I have managed installing Ruby 1.9.2 & Rails 3 on windows.
The following links has helped: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 methodpath’ for Gem:Module
(NoMethodError)
from C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/
source_index.rb:58:in
from_installed_gems' from C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems.rb:883:insource_inde
x’
from C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/
gem_path_searcher.rb:8
1:in init_gemspecs' from C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/ gem_path_searcher.rb:1 3:ininitialize’
from C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems.rb:841:in
new' from C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems.rb:841:inblock in se
archer’
from internal:prelude:10:in synchronize' from C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems.rb:840:insearcher’
from C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems.rb:479:in
`find_files’

    from C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems.rb:983:in

load_plugin s' from C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems.rb:1139:in<top (requ
ired)>’
from internal:lib/rubygems/custom_require:29:in require' from <internal:lib/rubygems/custom_require>:29:inrequire’
from C:/Ruby192/bin/gem:8:in `’

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… :frowning:

What is the magic you did you can install it?

Thanks:
dd

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.

On 21 September 2010 13:23, durumdara [email protected] wrote:

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

@Colin L.

its weird but thats the correct name of the dir

On Tue, Sep 21, 2010 at 10:54 AM, Colin L. [email protected]
wrote:

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”.

:frowning:

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

Thanks:
dd

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=""
… 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)
Invalid argument - ./</cdesc-<.yaml

C:\Ruby187\bin>

Hmmmm… I cannot go out from this hell…

dd

Hi dd,

As I have mentioned above, do what the following link instructs to do:
http://accidentaltechnologist.com/ruby-on-rails/running-rails-3-on-windows/

it worked for me.

if the above link does not help, try the following link:
http://johnivanoff.blogspot.com/2010/09/ruby-192-rails-3-clean-install-on.html

Hope this helps.

Regards,

Dani

sorry

thats the documentation, it should stop you from doing anything

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:
dd

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs