从终端
$ 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)
安装乘客4 beta的命令是gem install passenger -v 4.0.0.rc4
,它为我解决了这个错误。
答案 1 :(得分:0)
Passenger 3.0.19(使用gem install
获得的默认版本)尚未准备好使用ruby 2.使用ruby 1.9.3,或使用当前的乘客4 beta。