2010-07-12 140 views
0

乘客寶石從控制檯:無法安裝在Ubuntu

[email protected]:~$ gem install passenger 
    Building native extensions. This could take a while... 
    ERROR: Error installing passenger: 
     ERROR: Failed to build gem native extension. 

    /usr/bin/ruby1.8 extconf.rb 
    /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- mkmf (LoadError) 
     from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require' 
     from extconf.rb:8 


    Gem files will remain installed in /home/adelevie/ruby/gems/gems/fastthread-1.0.7 for inspection. 
    Results logged to /home/adelevie/ruby/gems/gems/fastthread-1.0.7/ext/fastthread/gem_make.out 

這是什麼意思,什麼是我的選擇?

+0

運行'紅寶石-e問題 「P $:」'和後輸出。這意味着無法找到'mkmf',一個附帶ruby的庫。您可能已經刪除了它,但它可能是'$:'問題。 – Adrian 2010-07-12 01:47:19

回答

3

它實際上

apt-get install ruby1.8-dev 

這樣固定的乘客建設爲我

1

您需要安裝ruby-dev pacakge。

apt-get install ruby-dev1.8