我正在尝试安装乘客:
gem1.8安装乘客
但是我收到了错误:
构建原生扩展。这可能需要一段时间...错误:错误 安装乘客:错误:无法构建gem原生扩展。
/usr/bin/ruby1.8 extconf.rb extconf.rb:8:in `require': no such
加载文件 - 来自extconf.rb的mkmf(LoadError):8
Gem文件将保持安装状态 /usr/lib/ruby/gems/1.8/gems/fastthread-1.0.7进行检查。结果 登录到 /usr/lib/ruby/gems/1.8/gems/fastthread-1.0.7/ext/fastthread/gem_make.out
所以现在我被告知安装ruby1.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” 我需要做什么?
答案 0 :(得分:2)
我想你可能会错过这个:
sudo apt-get install build-essential