Forum: Ruby on Rails Error occuring 'ruby script/server -debugger'

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Cac9d2fb99355ec43967b347fabae182?d=identicon&s=25 Conrad Don (randominator)
on 2009-06-03 13:07
[code]C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/
rocess/daemon.rb:4:in `fork': fork() function is unimplemented on this
machine
NotImplementedError)
        from
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_supp
rt/core_ext/process/daemon.rb:4:in `daemon'
        from
C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/commands/server.rb:
2
        from
C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `g
m_original_require'
        from
C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `r
quire'
        from script/server:3[/code]
Cac9d2fb99355ec43967b347fabae182?d=identicon&s=25 Conrad Don (randominator)
on 2009-06-03 13:14
Sory for double post but by mistake i pressed submit.
1st of all im a newbie so forgive me for any mistakes.

Ive been searching for some solutions.Tried even to instal open3
result :
----------------------------------------------------------------------------------
C:\Ruby\lib\ruby\gems\1.8\gems\win32-open3-0.2.9>rake install
(in C:/Ruby/lib/ruby/gems/1.8/gems/win32-open3-0.2.9)
C:/Ruby/bin/ruby.exe extconf.rb
checking for rb_pid_t in ruby.h... no
creating Makefile
nmake
Name 'nmake' is not recognized
rake aborted!
Command failed with status (1): [nmake...]

(See full trace by running task with --trace)
----------------------------------------------------------------------------------

Plz help cuze im stuck.I just need to create comments database using the
debugger.
81b61875e41eaa58887543635d556fca?d=identicon&s=25 Frederick Cheung (Guest)
on 2009-06-03 14:00
(Received via mailing list)
On Jun 3, 12:14 pm, Conrad Don <rails-mailing-l...@andreas-s.net>
wrote:
> Sory for double post but by mistake i pressed submit.
> 1st of all im a newbie so forgive me for any mistakes.
>

it's --debugger, not -debugger (which is being interpreted as -d which
does something completely different).

It does however sound like ruby script/console is more what you are
looking for

Fred
Cac9d2fb99355ec43967b347fabae182?d=identicon&s=25 Conrad Don (randominator)
on 2009-06-03 14:36
> it's --debugger, not -debugger (which is being interpreted as -d which
> does something completely different).

yeap ive used --debugger , just forgot to press additional -.
6b333bb95dddfc5dea721f00eda743c7?d=identicon&s=25 hemanth shiva (Guest)
on 2009-06-03 14:44
(Received via mailing list)
Hi,

I think you are working on Windows.
Windows doesnot support forking.

Hemanth

On Wed, Jun 3, 2009 at 4:37 PM, Conrad Don
Cac9d2fb99355ec43967b347fabae182?d=identicon&s=25 Conrad Don (randominator)
on 2009-06-03 15:05
hemanth shiva wrote:
> Hi,
>
> I think you are working on Windows.
> Windows doesnot support forking.
>
> Hemanth
>
> On Wed, Jun 3, 2009 at 4:37 PM, Conrad Don

Yeap working on windows , so there is no possibility to run debugger ?
6b333bb95dddfc5dea721f00eda743c7?d=identicon&s=25 hemanth shiva (Guest)
on 2009-06-04 08:24
(Received via mailing list)
Hi,

I dont think you can run it in Windows since I can see that the fork
is being called from
active support library of rails 2.3.2.

If you write a standalone program or use earlier version of rails ,
debugger might work.

fork() method is at the Operating system level call.
If the OS doesnot support that, there is nothing we can do about.

Hemanth

On Wed, Jun 3, 2009 at 6:35 PM, Conrad Don
81b61875e41eaa58887543635d556fca?d=identicon&s=25 Frederick Cheung (Guest)
on 2009-06-04 09:41
(Received via mailing list)
On Jun 3, 1:36 pm, Conrad Don <rails-mailing-l...@andreas-s.net>
wrote:
> > it's --debugger, not -debugger (which is being interpreted as -d which
> > does something completely different).
>
> yeap ive used --debugger , just forgot to press additional -.

It still looks very strongly like rails thought that you have told it
to daemonize. Have your tried -u instead of --debugger ?

Fred
This topic is locked and can not be replied to.