# Rails 2.0.2 on windows problems

**URL:** <https://www.ruby-forum.com/t/rails-2-0-2-on-windows-problems/124733>\
**Category:** Rails\
**Created:** [January 1, 2008, 11:47pm UTC](https://www.ruby-forum.com/t/rails-2-0-2-on-windows-problems/124733 "2008-01-01T23:47:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fozbaca](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/f0a364/32.png) [@fozbaca](https://www.ruby-forum.com/u/fozbaca)\
**Post date:** [January 1, 2008, 11:47pm UTC](https://www.ruby-forum.com/t/rails-2-0-2-on-windows-problems/124733/1 "2008-01-01T23:47:50Z")

</div>

I’m having trouble with running mongrel once I updated rails to 2.0  
from 1.2.5. This is the list of my installed gems

\*\*\* LOCAL GEMS \*\*\*

actionmailer (2.0.2, 2.0.1, 1.3.3)  
actionpack (2.0.2, 2.0.1, 1.13.3)  
actionwebservice (1.2.6, 1.2.3)  
activerecord (2.0.2, 2.0.1, 1.15.3)  
activeresource (2.0.2, 2.0.1)  
activesupport (2.0.2, 2.0.1, 1.4.2)  
activewarehouse (0.3.0, 0.2.0)

ar-extensions (0.7.0)  
ar\_fixtures (0.0.4)  
builder (2.1.2)  
capistrano (2.1.0, 1.4.1)  
cgi\_multipart\_eof\_fix (2.5.0, 2.1)  
color-tools (1.3.0)  
daemons (1.0.9, 1.0.6, 0.4.2)  
deprec (1.9.1)

gem\_plugin (0.2.3, 0.2.2)  
mongrel (1.1.2, 1.1.1, 1.0.5, 1.0.1)  
mongrel\_cluster (1.0.5, 1.0.2)  
mongrel\_service (0.3.3, 0.3.1)  
needle (1.3.0)  
net-sftp (1.1.0)  
net-ssh (1.1.2)  
nitro (0.41.0)  
og (0.41.0)  
paginator (1.1.0)  
parseexcel (0.5.2)  
pdf-writer (1.1.7, 1.1.3)  
rails (2.0.2, 2.0.1, 1.2.3)  
rails\_creator (0.6.2)  
rails\_sql\_views (0.6.1, 0.5.1)  
rake (0.8.0, 0.7.3, 0.7.2)  
rbehave (0.3.0)  
rcov (0.8.1.2.0, 0.8.0.2)  
RedCloth (3.0.4)  
rspec (1.1.1, 1.0.8)  
ruby-breakpoint (0.5.1, 0.5.0)  
ruby-debug-base (0.9.3)  
ruby-debug-ide (0.1.9)  
ruby-snarl (0.0.8)  
rubyclr (0.5.2)  
rubyforge (0.4.4, 0.4.2)  
rubygems-update (1.0.1, 0.9.5)

win32-service (0.5.2)  
win32-sound (0.4.1, 0.4.0)  
win32console (1.0.8)  
windows-pr (0.7.4, 0.6.2)  
zentest (3.5.0)  
ZenTest (3.7.0, 3.6.1)  
This is the error I get:  
D:\Brian\code\Payroll\>ruby script/server  
=\> Booting Mongrel (use ‘script/server webrick’ to force WEBrick)  
=\> Rails application starting on [http://0.0.0.0:3000](http://0.0.0.0:3000)  
=\> Call with -d to detach  
=\> Ctrl-C to shutdown server  
Exiting  
c:/ruby/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:27:in  
`gem_original_re quire': no such file to load -- c:/ruby/lib/ruby/gems/1.8/gems/ mongrel_service-0 .3.1-x86-mswin32/lib/mongrel_service/init.rb (MissingSourceFile) from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: 27:in `re  
quire’  
from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.1/lib/  
active\_suppo  
rt/dependencies.rb:496:in `require' from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.1/lib/ active_suppo rt/dependencies.rb:342:in `new\_constants\_in’  
from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.1/lib/  
active\_suppo  
rt/dependencies.rb:496:in `require' from c:/ruby/lib/ruby/gems/1.8/gems/gem_plugin-0.2.3/lib/ gem_plugin.rb:1 34:in `load’  
from c:/ruby/lib/ruby/site\_ruby/1.8/rubygems/source\_index.rb:  
163:in `eac  
h’

When I try to install mongrel\_service-0.3.1 I get this error:

C:\ruby\lib\ruby\gems\1.8\cache\>gem install mongrel\_service-0.3.1-  
mswin32.gem  
ERROR: While executing gem … (NoMethodError)  
undefined method `include?’ for nil:NilClass

C:\ruby\lib\ruby\gems\1.8\cache\>  
from c:/ruby/lib/ruby/site\_ruby/1.8/rubygems/source\_index.rb:  
163:in `eac h' from c:/ruby/lib/ruby/gems/1.8/gems/gem_plugin-0.2.3/lib/ gem_plugin.rb:1 12:in `load’  
… 11 levels…  
from c:/ruby/lib/ruby/gems/1.8/gems/rails-2.0.1/lib/commands/  
server.rb:3  
9  
from c:/ruby/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:  
27:in `ge m_original_require' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: 27:in `re  
quire’  
from script/server:3  
Anybody had similar problems??

---

<div class="post-metadata">

**Author:** ![fozbaca](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/f0a364/32.png) [@fozbaca](https://www.ruby-forum.com/u/fozbaca)\
**Post date:** [January 2, 2008, 1:54am UTC](https://www.ruby-forum.com/t/rails-2-0-2-on-windows-problems/124733/2 "2008-01-02T01:54:40Z")

</div>

Loads of people, it’s to do with rubygems 0.9.5+ and the changes made  
to accommodate ruby 1.9. Precompiled gems like mongrel/win32 are  
having some problems with this due to the folder naming conventions.  
Either use webrick in dev mode (assume your’re not trying to run  
production site on windows) or i think you can reinstall gems 0.9.4  
from scratch, but i haven’t tried.

---

<div class="post-metadata">

**Author:** ![fozbaca](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/f0a364/32.png) [@fozbaca](https://www.ruby-forum.com/u/fozbaca)\
**Post date:** [January 2, 2008, 9:45am UTC](https://www.ruby-forum.com/t/rails-2-0-2-on-windows-problems/124733/3 "2008-01-02T09:45:53Z")

</div>

Try starting over. Rename c:\ruby to c:\ruby2 and start from scratch.

I just did a fresh install on Windows today and everything works again.  
A  
few gems were updated within the last few days. The only issue was a  
problem  
with mongrel\_service and the current gem of win32\_service. I posted  
about  
that here, along with instructions for a fresh install:

[http://www.napcsweb.com/blog/2008/01/01/mongrel\_service-broken-on-windows-again/](http://www.napcsweb.com/blog/2008/01/01/mongrel_service-broken-on-windows-again/)

-Brian H.

---

<div class="post-metadata">

**Author:** ![fozbaca](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/f0a364/32.png) [@fozbaca](https://www.ruby-forum.com/u/fozbaca)\
**Post date:** [January 2, 2008, 1:35pm UTC](https://www.ruby-forum.com/t/rails-2-0-2-on-windows-problems/124733/4 "2008-01-02T13:35:00Z")

</div>

Yes, what others have said. Make sure you have RubyGems 1.0.x and you  
should be fine.

You could also try using InstantRails on RubyForge, it has everything  
already done for you.

-Rob B.
