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

444 views
Skip to first unread message

Dani Dani

unread,
Sep 5, 2010, 8:01:04 AM9/5/10
to rubyonra...@googlegroups.com
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
--
Posted via http://www.ruby-forum.com/.

Dani Dani

unread,
Sep 6, 2010, 5:45:30 PM9/6/10
to rubyonra...@googlegroups.com
Any help on this ?

radhames brito

unread,
Sep 6, 2010, 6:42:33 PM9/6/10
to rubyonra...@googlegroups.com
more info please


--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonra...@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.


Dani Dani

unread,
Sep 8, 2010, 6:17:18 PM9/8/10
to rubyonra...@googlegroups.com
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.

durumdara

unread,
Sep 21, 2010, 8:23:48 AM9/21/10
to Ruby on Rails: Talk
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 method `path' 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:in
`source_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:in `initialize'
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:in
`block in se
archer'
from <internal:prelude>:10:in `synchronize'
from C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems.rb:840:in
`searcher'
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:in `require'
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:
dd

radhames brito

unread,
Sep 21, 2010, 10:50:00 AM9/21/10
to rubyonra...@googlegroups.com
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.

Colin Law

unread,
Sep 21, 2010, 10:54:27 AM9/21/10
to rubyonra...@googlegroups.com
On 21 September 2010 13:23, durumdara <duru...@gmail.com> wrote:
> 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

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

radhames brito

unread,
Sep 21, 2010, 11:57:57 AM9/21/10
to rubyonra...@googlegroups.com
@Colin Law

its weird but thats the correct name of the dir

Dani Dani

unread,
Sep 22, 2010, 4:43:53 AM9/22/10
to rubyonra...@googlegroups.com
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,

durumdara

unread,
Sep 22, 2010, 7:48:05 AM9/22/10
to Ruby on Rails: Talk
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:
dd

On szept. 21, 16:54, Colin Law <clan...@googlemail.com> wrote:

durumdara

unread,
Sep 22, 2010, 8:17:42 AM9/22/10
to Ruby on Rails: Talk
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)
Invalid argument - ./</cdesc-<.yaml

C:\Ruby187\bin>

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

dd

radhames brito

unread,
Sep 22, 2010, 8:31:23 AM9/22/10
to rubyonra...@googlegroups.com
thats the documentation, it should stop you from doing anything

radhames brito

unread,
Sep 22, 2010, 8:31:47 AM9/22/10
to rubyonra...@googlegroups.com
sorry

On Wed, Sep 22, 2010 at 8:31 AM, radhames brito <rbr...@gmail.com> wrote:
thats the documentation, it should not stop you from doing anything

durumdara

unread,
Sep 23, 2010, 2:41:30 AM9/23/10
to Ruby on Rails: Talk
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
Reply all
Reply to author
Forward
0 new messages