Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with 'eventmachine' when running siriServer.rb #5

Open
arboleya opened this issue Jan 4, 2012 · 3 comments
Open

Problem with 'eventmachine' when running siriServer.rb #5

arboleya opened this issue Jan 4, 2012 · 3 comments

Comments

@arboleya
Copy link

arboleya commented Jan 4, 2012

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 this, even I have the 'event machine' gem properly installed

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 `<main>'

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 <main>'
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 `<main>'

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/

@azzadeen
Copy link

Hello,

I think you should install eventmachine gem
run this command
sudo gem install eventmachine

@arboleya
Copy link
Author

Sorry, I forgot to mention that I already have eventmachine installed.

[10:31][nybras@nybras-2:~]$ gem list | grep eventmachine
eventmachine (0.12.10)

[14:28][nybras@nybras-2:~]$ sudo gem list | grep eventmachine
Password:
eventmachine (0.12.10)

@azzadeen
Copy link

why not to keep the #!/usr/bin/env ruby
and run this instead
rvm use 1.9.2 --default
This should set you default ruby 1.9.2 if you have the ruby 1.9.2 already installed in the rvm
and to run the server using (rvmsudo ruby siriProxy.rb)
use rvmsudo not sudo
also when installing gems use rvmsudo gem install "the gem name"
This could help: http://www.stantheripper.com/siri/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants