applidium/Cracking-Siri — Issue #5: Problem with 'eventmachine' when running siriServer.rb
Author: nybras
Created: 2012-01-04 20:55:57+00:00
State: open

I use RVM, so I removed the

#!/usr/bin/env ruby

and replaced with

#!/Users/nybras/.rvm/rubies/ruby-1.9.2-head/bin/ruby

when I try to run it with sudo I get

sudo ruby siriServer.rb
/Users/nybras/.rvm/rubies/ruby-1.9.2-head/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': no such file to load -- eventmachine (LoadError)
from /Users/nybras/.rvm/rubies/ruby-1.9.2-head/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from siriServer.rb:2:in `

'

and without sudo

ruby siriServer.rb
/Users/nybras/.rvm/gems/ruby-1.9.2-head/gems/eventmachine-0.12.10/lib/eventmachine.rb:572:in `start_tcp_server': no acceptor (RuntimeError)
from /Users/nybras/.rvm/gems/ruby-1.9.2-head/gems/eventmachine-0.12.10/lib/eventmachine.rb:572:in `start_server'
from siriServer.rb:73:in `block in

'
from /Users/nybras/.rvm/gems/ruby-1.9.2-head/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `call'
from /Users/nybras/.rvm/gems/ruby-1.9.2-head/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run_machine'
from /Users/nybras/.rvm/gems/ruby-1.9.2-head/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run'
from siriServer.rb:72:in `

'

I dont know what to do from now on, I was following this tutorial:
http://f3v3r.com/2011/12/29/how-to-get-iphone-4s-siri-authentication-keys/