Errors when running 'ruby script/server'

Hello,

I have been attempting to get a WEBrick web server up and running using
the ‘ruby script/server’ command the console (cygwin) but when I do it
seems to hang there, I cannot exit with ctrl d or ctrl c.

I get the following print out when I run ‘ruby -w script/server’.

/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/validations.rb:334:
warning: *' interpreted as argument prefix /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/validations.rb:363: warning:’ interpreted as argument prefix
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/migration.rb:224:
warning: instance variable @ignore_new_methods not initializ
ed
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/migration.rb:224:
warning: instance variable @ignore_new_methods not initializ
ed
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/connection_adapters/abstract/connection_specification.rb:41:
warning: method r
edefined; discarding old allow_concurrency=
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/connection_adapters/sqlserver_adapter.rb:456:
warning: method redefined; disca
rding old remove_column
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/connection_adapters/oracle_adapter.rb:119:
warning: (…) interpreted as group
ed expression
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/request.rb:171:
warning: method redefined; discarding old relative_url_root
/usr/local/lib/ruby/1.8/cgi/session/pstore.rb:17: warning: method
redefined; discarding old []=
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/cgi_ext/raw_post_data_fix.rb:57:
warning: ambiguous first argument; put pare
ntheses or even spaces
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/cgi_ext/raw_post_data_fix.rb:8:
warning: method redefined; discarding old in
itialize_query
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/session/active_record_store.rb:129:
warning: private attribute?
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/session/active_record_store.rb:179:
warning: method redefined; discarding ol
d connection
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_view/helpers/prototype_helper.rb:641:
warning: ambiguous first argument; put parenthese
s or even spaces
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_view/helpers/prototype_helper.rb:874:
warning: `
’ interpreted as argument prefix
/usr/local/lib/ruby/gems/1.8/gems/actionmailer-1.2.5/lib/action_mailer/vendor/tmail/facade.rb:486:
warning: method redefined; discarding old create_re
ply
/usr/local/lib/ruby/gems/1.8/gems/actionwebservice-1.1.6/lib/action_web_service/protocol/xmlrpc_protocol.rb:6:
warning: discarding old message
/usr/local/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/initializer.rb:581:
warning: method redefined; discarding old []=
/usr/local/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/initializer.rb:590:
warning: method redefined; discarding old []
/usr/local/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/initializer.rb:595:
warning: method redefined; discarding old keys
/usr/local/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/initializer.rb:600:
warning: method redefined; discarding old find_pair
/usr/local/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/initializer.rb:607:
warning: method redefined; discarding old []=
/usr/local/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/initializer.rb:611:
warning: method redefined; discarding old []
/usr/local/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/initializer.rb:615:
warning: method redefined; discarding old method_missing

Given I have not successfully run a webserver I have no idea whether
these messages are normal or not. If anyone could shed any light on the
print out it would be greatly appreciated.

Thanks in advance,

Matt.

Matt G. wrote:

I have been attempting to get a WEBrick web server up and running using
the ‘ruby script/server’ command the console (cygwin)

Rails on Cygwin is a little tricky, though totally doable. I use this
for my development environment (now using RadRails 0.7) and it’s working
well, including WEBrick.

I wrote up this installation doc:
http://wiki.rubyonrails.org/rails/pages/RailsonWindowsCygwin

I’d check whether you have Ruby and Rails installed “properly” as
indicated. You haven’t even made it to hooking up your database yet, so
don’t worry about MySQL just yet.

–dwf

Hi,

Thanks a lot for the reply,

I have followed the instructions in the wiki up to point 6. When I run
‘gem install mysql’ (selection 2 from the list, latest non-mswin32
version), I get the following warning.

/usr/local/lib/ruby/site_ruby/1.8/rubygems/installer.rb:570: warning:
Insecure world writable dir /cygdrive/c/program files/texmf/miktex/bin,
mode 040
777

It then appears to hang, although I can exit with ctrl c. In the wiki it
is mentioned that this process could take some time but I left it for
over an hour and still it had not moved on.

Do I need to give it more time, or is this warning a cause for concern?

Thanks again,

Matt.

Ignore my previous message, it seems it was a cygwin permissioning
related warning.

However, It still seems to be taking ages to build native extensions
(been going for 2.5 hours now).

Is this to be expected?

Matt.