I installed Ruby,rubygems and rails via command prompt. Then I created a
project rails ajaxonrails. But when I execute script/server from inside
ajaxonrails folder windows gives me an error saying that ‘script’ is not
an internal or external coomand. Please let me know if I am missing
something here.
When I execute this command I get the following error:
C:\ajaxonrails>ruby script/server
=> Booting Mongrel (use ‘script/server webrick’ to force WEBrick)
=> Rails application starting on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
** Starting Mongrel listening at 0.0.0.0:3000
** Starting Rails with development environment…
** Rails loaded.
** Loading any Rails specific GemPlugins
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-1.1.1-x86 -mswin32-60/lib/mongrel/init.rb (MissingSourceFile) from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in require’
from
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_suppo
rt/dependencies.rb:495:in require' from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_suppo rt/dependencies.rb:342:in new_constants_in’
from
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_suppo
rt/dependencies.rb:495: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:166:in each' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/source_index.rb:166:in each’
from
c:/ruby/lib/ruby/gems/1.8/gems/gem_plugin-0.2.3/lib/gem_plugin.rb:1
12:in load' ... 21 levels... from c:/ruby/lib/ruby/gems/1.8/gems/rails-1.2.6/lib/commands/server.rb:39 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
`require’
from script/server:3
Uninstall the mongrel gem and ensure you install the mswin32 version.
I uninstalled mongrel by using the following command
“gem uninstall mongrel”
but when I reinstalled it by using “gem install mongrel - y” I got the
following output
C:\rubygems-0.9.5\rubygems-0.9.5>gem install mongrel -y
INFO: gem install -y is now default and will be removed
INFO: use --ignore-dependencies to install only the gems you list
Successfully installed gem_plugin-0.2.3
Successfully installed mongrel-1.1.1-mswin32
2 gems installed
Installing ri documentation for gem_plugin-0.2.3…
Installing ri documentation for mongrel-1.1.1-mswin32…
Installing RDoc documentation for gem_plugin-0.2.3…
Installing RDoc documentation for mongrel-1.1.1-mswin32…
But when I executed ruby script/server I got the same error as posted in
the above thread.
I would apreciate any link to a detailed installation procedure for
Mongrel.
I experienced this situation…
I don’t know exactly, but can you check your mongrel directory’s name?
Maybe It is not “mongrel-1.1.1-x86-mswin32-60”
Just change the directory name to “mongrel-1.1.1-x86-mswin32-60”
It works very well when you start mongrel server on command line
But, while you are using the radrails IDE, It doesn’t recognized the
mongrel
server where it installed nor.
I experienced this situation…
I don’t know exactly, but can you check your mongrel directory’s name?
Maybe It is not “mongrel-1.1.1-x86-mswin32-60”
Just change the directory name to “mongrel-1.1.1-x86-mswin32-60”
It works very well when you start mongrel server on command line
But, while you are using the radrails IDE, It doesn’t recognized the
mongrel
server where it installed nor.
I had the same problem after updating RubyGems to 0.9.5 from 0.9.4
(and updating Rails to 2.0 from 1.2.6). I tried the suggestion to
simply rename the folder to ‘mongrel-1.1.1-x86-mswin32-60’ from
‘mongrel-1.1.2-win32’. Works for me on command line and NetBeans.
I notice that RubyGems 0.9.5 doesn’t ask which version to install,
looks like it brings in the latest version for your environment.
I experienced this situation…
I don’t know exactly, but can you check your mongrel directory’s name?
Maybe It is not “mongrel-1.1.1-x86-mswin32-60”
Just change the directory name to “mongrel-1.1.1-x86-mswin32-60”
It works very well when you start mongrel server on command line
But, while you are using the radrails IDE, It doesn’t recognized the
mongrel
server where it installed nor.
if you are doing mail:
I got the same error when i tried some mail settings i found on google,
which modified the config file. i would remove anything you changed and
set it
back to it’s original state.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.