分页: 1 / 1

[问题]编译时 error: C compiler cannot create executables

发表于 : 2007-03-01 10:16
jiarong.lu
初步在网上搜索,建议安装build-essential
在安装时,报错了:
build-essential: Depends: libc6-dev but it is not going to be installed or
libc-dev
Depends: g++ (>= 4:4.0) but it is not going to be installed

尝试安装libc6-dev , g++
libc6-dev: Depends: libc6 (= 2.3.6-0ubuntu20.4) but 2.4-1ubuntu12 is to be installed
g++: Depends: g++-4.0 (>= 4.0.3) but it is not going to be installed

没辙了
我的系统是:Linux ubuntu 2.6.17-10-server #2 SMP Fri Oct 13 18:47:26 UTC 2006 i686 GNU/Linux

希望有好的建议,谢谢

发表于 : 2007-03-27 23:45
icybird_r
顶一下,我也碰到这个问题.
romeo@romeo-laptop:~$ uname -a
Linux romeo-laptop 2.6.17-10-generic #2 SMP Fri Oct 13 18:45:35 UTC 2006 i686 GNU/Linux

发表于 : 2007-04-02 21:35
Feb29
把源选对,注意加上 edgy-updates, 再不行把edgy-security,proposed也加上
然后试试用暴力点的 aptitude install
apt-get比较腼腆,经常碰到不一致的版本就抓瞎了