[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] -- Posted via http://www.ruby-forum.com/.
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. -- Posted via http://www.ruby-forum.com/.
Frederick Cheung
2009-Jun-03 11:59 UTC
Re: Error occuring ''ruby script/server -debugger''
On Jun 3, 12:14 pm, Conrad Don <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> 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> 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. > -- > Posted viahttp://www.ruby-forum.com/.
Hi, I think you are working on Windows. Windows doesnot support forking. Hemanth On Wed, Jun 3, 2009 at 4:37 PM, Conrad Don <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > [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] > -- > Posted via http://www.ruby-forum.com/. > > > >
> 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 -. -- Posted via http://www.ruby-forum.com/.
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 DonYeap working on windows , so there is no possibility to run debugger ? -- Posted via http://www.ruby-forum.com/.
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 <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > 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 ? > -- > Posted via http://www.ruby-forum.com/. > > > >
Frederick Cheung
2009-Jun-04 07:40 UTC
Re: Error occuring ''ruby script/server -debugger''
On Jun 3, 1:36 pm, Conrad Don <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> 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