[Backgroundrb-devel] Noob needs help installing backgroundrb on Windows XP

Ezra Zygmuntowicz ezmobius at gmail.com
Wed Nov 29 16:19:03 EST 2006


	Unfortunately that won't cut it in this case, I wish it would. Slave  
does more then just fork. It uses ipc and a few other things that  
just don't work yet on windows. There is a possibility it could be  
made to work but right now it does not, even with win32 process.


-Ezra

On Nov 29, 2006, at 12:49 PM, Michael Siebert wrote:

> Hey y'all,
> if its only about fork'ing, there is a gem on rubyforge that does  
> exactly that: provide fork on windows.
>
> http://rubyforge.org/projects/win32utils/
>
> win32-process should do the trick. if you search the ml archives,  
> you'll find a post by me about using backgroundrb in daemon mode on  
> win32 (some time ago where bgdrb used fork for daemoning).
> unfortunately everyone ignored that post. hopefully you don't  
> ignore that one again, since it worked wonderful when i tried it.  
> dont know about slave, but i think win32-utils can help out a bit  
> there.
> beware: i didnt test that trickt because a. im using sonme older  
> thread-pool-version and b. hardly switch my windows pc on since i  
> have my macbook :)
>
> solong...
> Micha
>
> Am 29.11.2006 um 21:04 schrieb Ezra Zygmuntowicz:
>
>> Hey Derek-
>>
>> 	Yeah the new version does not currently work on windows because
>> slave does a lot of fork'ing which doesn't work seamlessly on
>> windows. There is talk of working towards a windows version of slave
>> that would allow backgroundrb 0.2.x to work on windows. But for now
>> your options on windows is to use the new bdrb under cygwin, or use
>> the older version of the plugin from the svn at rubyforge. That
>> version still works fine and will work on windows.
>>
>>
>> Cheers-
>>
>> -Ezra
>>
>> On Nov 29, 2006, at 9:28 AM, Derek Doda wrote:
>>
>>> Hey Guys,
>>>
>>> In the readme for Backgroundrb it says that windows support has been
>>> depcreated for this version, but then it goes on to mention how  
>>> to use
>>> it in Windows.  So I'm not sure if it should be running on  
>>> windows or
>>> not, so I'll ask anyway.  Also, I'm new to ruby and I'm also new to
>>> server administration, so I apologize if my questions are pretty
>>> simple.
>>>
>>> I've tried to install backgroundrb on windows by doing the  
>>> following:
>>>
>>> Installed slave 1.0.0 by using 'gem install slave' which seemed to
>>> work
>>> Installed daemons 1.0.3. by using 'gem install daemons' which also
>>> seemed to work
>>>
>>> I downloaded backgroundrb via SVN into the vendor/plugin/ 
>>> backgroundrb
>>> vendor plugin.
>>> Did a 'rake backgroundrb:setup'
>>>
>>> When I try to view a page it only renders "<h2>Application
>>> error</h2>Rails application failed to start properly".
>>>
>>> These are the errors that I got from Apache 2.2
>>>
>>> Premature end of script headers: dispatch.cgi
>>> C:/ruby/lib/ruby/1.8/pathname.rb:341:in `lstat': Invalid argument -
>>> /C:/work/websites/cms/build1/cms/public/C:/work/websites/cms/build1/
>>> cms/public/../config
>>> (Errno::EINVAL)\r
>>> \tfrom C:/ruby/lib/ruby/1.8/pathname.rb:341:in `realpath'\r
>>>  \tfrom
>>> C:/work/websites/cms/build1/cms/public/../config/../vendor/plugins/
>>> backgroundrb/lib/middleman_rails_init.rb:2\r
>>>  \tfrom C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
>>> 27:in
>>> `require'\r
>>>  \tfrom
>>> C:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/
>>> active_support/dependencies.rb:147:in
>>> `require'\r
>>>  \tfrom
>>> C:/work/websites/cms/build1/cms/public/../config/../vendor/plugins/
>>> backgroundrb/init.rb:2:in
>>> `load_plugin'\r
>>>  \tfrom
>>> C:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/initializer.rb:348:in
>>> `load_plugin'\r
>>>  \tfrom
>>> C:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/
>>> active_support/core_ext/kernel/reporting.rb:11:in
>>> `silence_warnings'\r
>>>  \tfrom
>>> C:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/initializer.rb:348:in
>>> `load_plugin'\r
>>>  \tfrom
>>> C:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/initializer.rb:158:in
>>> `load_plugins'\r
>>>  \tfrom
>>> C:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/initializer.rb:158:in
>>> `load_plugins'\r
>>>  \tfrom
>>> C:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/initializer.rb:102:in
>>> `process'\r
>>>  \tfrom
>>> C:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/initializer.rb:42:in
>>> `run'\r
>>>  \tfrom C:/work/websites/cms/build1/cms/public/../config/
>>> environment.rb:13\r
>>>  \tfrom C:/work/websites/cms/build1/cms/public/dispatch.cgi:3\r
>>>
>>> Any help would be appreciated
>>>
>>> Cheers,
>>> -Derek
>>>
>>> _______________________________________________
>>> Backgroundrb-devel mailing list
>>> Backgroundrb-devel at rubyforge.org
>>> http://rubyforge.org/mailman/listinfo/backgroundrb-devel
>>>
>>
>> -- Ezra Zygmuntowicz-- Lead Rails Evangelist
>> -- ez at engineyard.com
>> -- Engine Yard, Serious Rails Hosting
>> -- (866) 518-YARD (9273)
>>
>>
>> _______________________________________________
>> Backgroundrb-devel mailing list
>> Backgroundrb-devel at rubyforge.org
>> http://rubyforge.org/mailman/listinfo/backgroundrb-devel
>
> -----------------------------
> Siebert Michael
> info at siebert-wd.de
>
> ---
>
> ACHTUNG potenzieller Amokläufer:
>   spiele Killerspiele (Scarface, GTA, UT)
>   schaue Horrorfilme (Wrong Turn, Texas Chainsaw Massacre)
>   höre Musik von Anarchisten und Dunklen (Rammstein, Tote Hosen, Wizo)
>   höre Nazi-Musik von den Böhsen Onkelz, bin also auch noch Neonazi
>   war mal auf ner Antifa-Demo
>   war beim B.U.N.D.
>   ich mag Ironie
>
>
>
>

-- Ezra Zygmuntowicz 
-- Lead Rails Evangelist
-- ez at engineyard.com
-- Engine Yard, Serious Rails Hosting
-- (866) 518-YARD (9273)




More information about the Backgroundrb-devel mailing list