在Mac上安装旅客宝石有问题

时间:2022-09-19 07:45:26

From terminal

从终端

$ 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

Don't understand this error, and why does it appear twice? Any guidance appreciated.

不明白这个错误,为什么出现两次?欣赏任何指导。

2 个解决方案

#1


0  

Passenger 3.0.19 (the default version you get with gem install) is not ready for ruby 2. Either use ruby 1.9.3, or use the current passenger 4 beta.

乘客3.0.19(使用gem安装的默认版本)还没有为ruby 2准备好。要么使用ruby 1.9.3,要么使用当前的乘客4测试版。

#2


3  

The command for installing the passenger 4 beta is gem install passenger -v 4.0.0.rc4 which solved this error for me.

安装乘客4测试版的命令是gem安装乘客- v4.0.0。rc4为我解决了这个错误。

#1


0  

Passenger 3.0.19 (the default version you get with gem install) is not ready for ruby 2. Either use ruby 1.9.3, or use the current passenger 4 beta.

乘客3.0.19(使用gem安装的默认版本)还没有为ruby 2准备好。要么使用ruby 1.9.3,要么使用当前的乘客4测试版。

#2


3  

The command for installing the passenger 4 beta is gem install passenger -v 4.0.0.rc4 which solved this error for me.

安装乘客4测试版的命令是gem安装乘客- v4.0.0。rc4为我解决了这个错误。