为什么“gem install passenger”失败了“未定义的方法`join'为nil:NilClass”?

时间:2014-04-14 14:17:24

标签: ruby rubygems passenger

使用RVM v1.25.22,当我尝试安装passenger gem时,它失败了。安装其他宝石(例如pry)会成功。

[nick@app02 ~] gem install passenger
HEAD http://rubygems.org/latest_specs.4.8.gz
302 Moved Temporarily
…
Installing gem passenger-4.0.41
/usr/local/rvm/gems/ruby-1.9.3-p448/gems/passenger-4.0.41/.gitignore
/usr/local/rvm/gems/ruby-1.9.3-p448/gems/passenger-4.0.41/.travis.yml
...
/usr/local/rvm/gems/ruby-1.9.3-p448/gems/passenger-4.0.41/test/tut/tut_reporter.h
/usr/local/rvm/gems/ruby-1.9.3-p448/gems/passenger-4.0.41/test/valgrind-osx.supp
Building native extensions.  This could take a while...
/usr/local/rvm/rubies/ruby-1.9.3-p448/bin/ruby extconf.rb
Attempting to download https://oss-binaries.phusionpassenger.com/binaries/passenger/by_release/4.0.41/rubyext-ruby-1.9.3-x86_64-linux.tar.gz into /usr/local/rvm/gems/ruby-1.9.3-p448/gems/passenger-4.0.41/download_cache
Attempting to download https://oss-binaries.phusionpassenger.com/binaries/passenger/by_release/4.0.41/webhelper-1.4.7-x86_64-linux.tar.gz into /usr/local/rvm/gems/ruby-1.9.3-p448/gems/passenger-4.0.41/download_cache
Attempting to download https://oss-binaries.phusionpassenger.com/binaries/passenger/by_release/4.0.41/support-x86_64-linux.tar.gz into /usr/local/rvm/gems/ruby-1.9.3-p448/gems/passenger-4.0.41/download_cache
make "DESTDIR="
true
make "DESTDIR=" install
true
ERROR:  While executing gem ... (NoMethodError)
    undefined method `join' for nil:NilClass
[nick@app02 ~]  
[nick@app02 ~] echo $?
1
[nick@app02 ~]

1 个答案:

答案 0 :(得分:0)

令人尴尬的是,我在9个月前问过并回答了完全相同的问题:

Installing gems with extensions always fails