无法在Ubuntu上安装乘客宝石

时间:2010-07-12 01:27:23

标签: ruby ubuntu passenger

从控制台:

 adelevie@ubuntu:~$ 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

这意味着什么,我的选择是什么?

2 个答案:

答案 0 :(得分:3)

实际上是

apt-get install ruby1.8-dev

这样做解决了为我建造乘客的问题

答案 1 :(得分:1)

您需要安装ruby-dev软件包。

apt-get install ruby-dev1.8