Script/server doesn't work

Hi,

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.

Thanks

Syed

Try ruby script/server

Ryan wrote:

Try ruby script/server

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

C:\ajaxonrails>

Uninstall the mongrel gem and ensure you install the mswin32 version.

Check out group by method in rails.

Sent from my iPhone

Ryan wrote:

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.

Thank you.

Syed

On Nov 28, 2007 11:36 PM, Bcp [email protected] wrote:

Check out group by method in rails.

Sent from my iPhone

Settings → Mail → Signature to fix that embarassing default sig you
got there :slight_smile:


Greg D.
http://destiney.com/

I still encountered similar error like Syed after reinstalling
mongrel-1.1.1.

Any resolution yet? Thanks.

Dan

On Nov 28, 1:11 pm, Syed R. [email protected]

I encountered similar error like you did after reinstalling mswin32
mongrel-1.1.1. Any resolution yet?

Thanks.

On Nov 28, 1:11 pm, Syed R. [email protected]

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.

jinsoo wrote:

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.

:slight_smile: