Eventmachine gem install fail

I could install it, doing this steps: 1) tried a normal install: gem install eventmachine it fetched the version 1.0.3 of the gem, but failed in the make, because of a variable declaration conflit 2) edited the file: c:\Ruby200-x64\lib\ruby\gems\2.0.0\gems\eventmachine-1.0.3\ext\project.h and commented the line 97 //typedef int pid_t; for a more robust correction, checkout the solution … Read more

Any success with Sinatra working together with EventMachine WebSockets?

Did not try it, but should not be too hard: require ’em-websocket’ require ‘sinatra/base’ require ‘thin’ EM.run do class App < Sinatra::Base # Sinatra code here end EM::WebSocket.start(:host => ‘0.0.0.0’, :port => 3001) do # Websocket code here end # You could also use Rainbows! instead of Thin. # Any EM based Rack handler should … Read more

What is the difference between event driven model and reactor pattern? [closed]

The reactor pattern is more specific than “event driven programming”. It is a specific implementation technique used when doing event driven programming. However, the term is not used with much accuracy in typical conversation, so you should be careful about using it and expecting your audience to understand you, and you should be careful in … Read more

gem eventmachine fatal error: ‘openssl/ssl.h’ file not found

$ gem install eventmachine — –with-cppflags=-I/usr/local/opt/openssl/include Building native extensions with: ‘–with-cppflags=-I/usr/local/opt/openssl/include’ This could take a while… Successfully installed eventmachine-1.0.8 1 gem installed You can also set up bundler like this but I think that is superficial bundle config build.eventmachine –with-cppflags=-I/usr/local/opt/openssl/include