gpt4 book ai didi

ruby - Debian squeeze 下 Ruby 的乘客安装错误

转载 作者:塔克拉玛干 更新时间:2023-11-03 00:28:28 25 4
gpt4 key购买 nike

我正在尝试安装乘客:

gem1.8 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 extconf.rb:8:in `require': no such

file to load -- mkmf (LoadError) from extconf.rb:8

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

所以现在我被告知要安装 ruby​​1.8-dev 但我已经一个依赖:

Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
ruby1.8-dev : Depends: libc6-dev but it is not going to be installed
E: Broken packages

所以我尝试同时安装它们并得到:

The following packages have unmet dependencies:
libc6-dev : Depends: libc6 (= 2.7-18lenny7) but 2.11.2-10 is to be installed

所以最后我尝试安装发出命令:

apt-get install ruby1.8-dev libc6-dev libc6

但是我得到了同样的错误。我也尝试过“apt-get -f”我需要做什么?

最佳答案

我想你可能错过了这个:

sudo apt-get install build-essential

关于ruby - Debian squeeze 下 Ruby 的乘客安装错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7618632/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com