我是 Raspberry Pi 和 Linux 的新手,想安装 SiriProxy。
我按照本指南中的步骤操作:http ://www.idownloadblog.com/2011/12/09/how-to-install-siri-proxy-tutorial-video/
完成所有步骤后,我遇到了一个错误,指出它在当前机器上找不到 eventmachine。
当我以 root 用户身份运行 gem install eventmachine -v 1.0.0 时,它返回:
root@raspberrypi:/var/lib/gems/1.9.1/gems# gem install eventmachine
Building native extensions. This could take a while...
ERROR: Error installing eventmachine:
ERROR: Failed to build gem native extension.
/usr/bin/ruby1.9.1 extconf.rb
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- mkmf (LoadError)
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from extconf.rb:2:in `<main>'
Gem files will remain installed in /var/lib/gems/1.9.1/gems/eventmachine-1.0.0 for inspection.
Results logged to /var/lib/gems/1.9.1/gems/eventmachine-1.0.0/ext/gem_make.out
如果有人有任何建议,我将不胜感激,正如我所说我是新手,所以对复杂术语的解释会有所帮助。:)
编辑:好的,我已经能够通过在 /root/SiriProxy/bin/ 目录中运行“bundle”来解决这个错误。这恰好安装了 SiriProxy 所需的所有 gem。运行“ruby siriproxy server”返回:
root@raspberrypi:~/SiriProxy/bin# ruby siriproxy server
Starting SiriProxy on port 443..
SiriProxy up and running.
虽然从 iPhone 发送语音包时(5,未越狱,没有 VPN,在同一个 WIFI 网络上)我收到了这个错误:
Create server for iPhone connection
/var/lib/gems/1.9.1/gems/eventmachine-1.0.0/lib/em/connection.rb:411:in `block in start_tls': Could not find /root/.siriproxy/server.passless.key for start_tls (EventMachine::FileNotFoundException)
from /var/lib/gems/1.9.1/gems/eventmachine-1.0.0/lib/em/connection.rb:409:in `each'
from /var/lib/gems/1.9.1/gems/eventmachine-1.0.0/lib/em/connection.rb:409:in `start_tls'
from /root/SiriProxy/lib/siriproxy/connection/iphone.rb:15:in `post_init'
from /var/lib/gems/1.9.1/gems/eventmachine-1.0.0/lib/em/connection.rb:58:in `block in new'
from /var/lib/gems/1.9.1/gems/eventmachine-1.0.0/lib/em/connection.rb:49:in `instance_eval'
from /var/lib/gems/1.9.1/gems/eventmachine-1.0.0/lib/em/connection.rb:49:in `new'
from /var/lib/gems/1.9.1/gems/eventmachine-1.0.0/lib/eventmachine.rb:1462:in `event_callback'
from /var/lib/gems/1.9.1/gems/eventmachine-1.0.0/lib/eventmachine.rb:187:in `run_machine'
from /var/lib/gems/1.9.1/gems/eventmachine-1.0.0/lib/eventmachine.rb:187:in `run'
from /root/SiriProxy/lib/siriproxy.rb:16:in `initialize'
from /root/SiriProxy/lib/siriproxy/command_line.rb:96:in `new'
from /root/SiriProxy/lib/siriproxy/command_line.rb:96:in `start_server'
from /root/SiriProxy/lib/siriproxy/command_line.rb:85:in `run_server'
from /root/SiriProxy/lib/siriproxy/command_line.rb:37:in `initialize'
from siriproxy:6:in `new'
from siriproxy:6:in `<main>'
检查有问题的目录(/root/.siriproxy/)后,我只找到了配置文件:
root@raspberrypi:~/SiriProxy/bin# cd /root/.siriproxy/
root@raspberrypi:~/.siriproxy# ls
config.yml
root@raspberrypi:~/.siriproxy# cd /home/pi/.siriproxy/
root@raspberrypi:/home/pi/.siriproxy# ls
config.yml
在文件系统中搜索该文件未返回任何结果:
root@raspberrypi:/home/pi/.siriproxy# find / -name server.passless.key
root@raspberrypi:/home/pi/.siriproxy#
有人知道我在哪里可以找到这些文件/解决这个错误吗?