2013-04-09 116 views
3

安裝乘客的寶石從終端麻煩在Mac

$ sudo gem install passenger 
Building native extensions. This could take a while... 
ERROR: Error installing passenger: 
    ERROR: Failed to build gem native extension. 
    /Users/dan/.rvm/rubies/ruby-2.0.0-p0/bin/ruby extconf.rb 
extconf.rb:13:in `block in <main>': Use RbConfig instead of obsolete and deprecated Config. 
extconf.rb:13:in `block in <main>': Use RbConfig instead of obsolete and deprecated Config. 
make 
Makefile:104: *** missing separator. Stop. 


Gem files will remain installed in /Users/dan/.rvm/gems/ruby-2.0.0-p0/gems/fastthread-1.0.7 for inspection. 
Results logged to /Users/dan/.rvm/gems/ruby-2.0.0-p0/gems/fastthread-1.0.7/ext/fastthread/gem_make.out 

不明白這個錯誤,爲什麼它會出現兩次?任何指導讚賞。

回答

0

乘客3.0.19(你用gem install得到的默認版本)還沒準備好用於ruby 2.要麼使用ruby 1.9.3,要麼使用當前的乘客4 beta。

3

安裝乘客4測試版的命令是gem install passenger -v 4.0.0.rc4它解決了這個錯誤我。

+0

我的評論的當前版本是RC6,創業板安裝乘客-v 4.0.0.rc6良好的工作與紅寶石2從自制 – rroche 2013-04-27 00:24:04