我在開發機器上安裝AppFog客戶端Ruby Gem的時間很困難。特別是需要的tunnel
能力。使用Ruby 2.0.0在Windows x64上安裝AppFog客戶端
這是我迄今所做的,
- RubyInstaller安裝Ruby 2.0的x64(我的電腦上唯一的一個,我一直沒有真正使用紅寶石前)
gem update --system
gem install af
該工程確定爲af login
等
- 安裝了RubyInstaller的devkit
- 從GitHub克隆
eventmachine
和patched and installed as described here gem install caldecott --platform=ruby
這一切工作正常,沒有從寶石系統的投訴,但是現在,當我運行AppFog客戶我仍然得到,
C:\Ruby200-x64\bin>gem install caldecott --platform=ruby Successfully installed caldecott-0.0.5 Parsing documentation for caldecott-0.0.5 1 gem installed
C:\Ruby200-x64\bin>af tunnel [WARNING] DL is deprecated, please use Fiddle To use `af tunnel', you must first install Caldecott:
gem install caldecott
Note that you'll need a C compiler. If you're on OS X, Xcode will provide one. If you're on Windows, try DevKit.
This manual step will be removed in the future.
Error: Caldecott is not installed.
C:\Ruby200-x64\bin>
即安裝不識別caldecott
。我究竟做錯了什麼?
事實證明,儘管'eventmachine'編譯和使用上述方法安裝的,它仍然沒有導入到Ruby代碼時運行。因此,我對整個Ruby 2.0.0進行了安裝,並安裝了Ruby 1.9.3 33bit(?)。這工作得很好,安裝了eventmachine,Caldecott也一樣。我將這裏的問題留給那些真的必須在Windows上使用Ruby 2.0.0的人... – Brendan 2013-05-01 21:06:38