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

编译安装或者制作Deb包
回复
jiarong.lu
帖子: 12
注册时间: 2007-02-16 11:10
送出感谢: 0
接收感谢: 0

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

#1

帖子 jiarong.lu » 2007-03-01 10:16

初步在网上搜索,建议安装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

希望有好的建议,谢谢
icybird_r
帖子: 20
注册时间: 2007-02-09 0:14
送出感谢: 0
接收感谢: 0

#2

帖子 icybird_r » 2007-03-27 23:45

顶一下,我也碰到这个问题.
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
Feb29
帖子: 8
注册时间: 2007-04-02 21:09
送出感谢: 0
接收感谢: 0
联系:

#3

帖子 Feb29 » 2007-04-02 21:35

把源选对,注意加上 edgy-updates, 再不行把edgy-security,proposed也加上
然后试试用暴力点的 aptitude install
apt-get比较腼腆,经常碰到不一致的版本就抓瞎了
回复

回到 “编译或打包”