daze
2010-Oct-22 21:03 UTC
Can''t use rails_upgrade plugin on Windows due to missing fork() function
I''m on Windows....and I can''t get anything to work with this plugin: http://github.com/rails/rails_upgrade If I run rake rails:upgrade:check, for example, I get this: rake aborted! fork() function is unimplemented on this machine What a drag! I heard that Ruby''s fork() function is unimplemented on Windows... DOES THAT MEAN I CAN''T USE THE PLUGIN? If you have any insights, please helpppp! -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
daze
2010-Oct-22 21:03 UTC
Can''t use rails_upgrade plugin on Windows due to missing fork() function
I''m on Windows....and I can''t get anything to work with this plugin: http://github.com/rails/rails_upgrade If I run rake rails:upgrade:check, for example, I get this: rake aborted! fork() function is unimplemented on this machine What a drag! I heard that Ruby''s fork() function is unimplemented on Windows... DOES THAT MEAN I CAN''T USE THE PLUGIN? If you have any insights, please helpppp! -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
zYan1de
2010-Oct-23 11:47 UTC
Re: Can''t use rails_upgrade plugin on Windows due to missing fork() function
Ruby''s fork() function isn''t "unimplemented" on windows, fork() is an function provided by the OS on Unix and Unix-like OS''es (e.g. Linux, OS X, etc, etc.) On Oct 22, 11:03 pm, daze <dmonopol...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I''m on Windows....and I can''t get anything to work with this plugin:http://github.com/rails/rails_upgrade > > If I run rake rails:upgrade:check, for example, I get this: > > rake aborted! > fork() function is unimplemented on this machine > > What a drag! I heard that Ruby''s fork() function is unimplemented on > Windows... > DOES THAT MEAN I CAN''T USE THE PLUGIN? > > If you have any insights, please helpppp!-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Marc Bungart
2010-Oct-27 18:50 UTC
Re: Can''t use rails_upgrade plugin on Windows due to missing fork() function
Hi daze, I’m trying the same without a solution yet. Did you make any progress? Kind regards Marc -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
haslo-f3onniXrWjk@public.gmane.org
2010-Nov-12 12:29 UTC
Re: Can''t use rails_upgrade plugin on Windows due to missing fork() function
I had the same problem, and found the solution here: https://github.com/jm/rails_upgrade/issues#issue/7/comment/497475 There''s a required gem that uses fork(), of which there is a windows version that doesn''t. So first, you have to... gem install win32-open3 ...and then you edit the file as stated in the link, I quote: edit vendor\plugins\rails_upgrade\lib\application_checker.rb and change: require ''open3'' to require ''win32/open3'' Cheers, Guido On Oct 27, 7:50 pm, Marc Bungart <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Hi daze, > > I’m trying the same without a solution yet. Did you make any progress? > > Kind regards > Marc > > -- > Posted viahttp://www.ruby-forum.com/.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
daze
2010-Dec-09 03:06 UTC
Re: Can''t use rails_upgrade plugin on Windows due to missing fork() function
In the end, I just made a new rails 3 application and did a lot of code transfer (copy/paste). It actually didn''t take that long, and things are great with the app in Rails 3. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Gayle Craig
2011-Nov-11 00:02 UTC
Re: Can''t use rails_upgrade plugin on Windows due to missing fork() function
I tried using this https://github.com/matschaffer/win32-open3-19 as described in this post: http://stackoverflow.com/questions/4930270/ruby-1-9-no-such-file-to-load-win32-open3 But I never got it to work. Note that the "win32-open3 requires Ruby version < 1.9.0" So I used pik to downgrade to Ruby version 1.8.7, so I could use win32-open3, and then I was able to run the rails_upgrade plugin. Then I plan to upgrade my app using 1.8.7, make sure that works, and get that checked into version control. Once that''s done I''ll use pik to go back up to 1.9.* and make sure it still works. Don''t forget to add gem "win32-open3" to your Gemfile, at least until you get the rails upgrade done (no need to check that into version control unless you are also checking in the rails upgrade plugin, which you probably won''t). -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.