免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1423 | 回复: 3
打印 上一主题 下一主题

请教:开发环境搭建问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-08-04 15:49 |只看该作者 |倒序浏览
我想搭建一个c/c++的开发环境,OS版本是debian 2.6.18-6-686
sourcelist如下:
×××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××
deb http://debian.anheng.com.cn/debian etch main non-free contrib
deb-src http://debian.anheng.com.cn/debian etch main non-free contrib

deb http://debian.ustc.edu.cn/debian etch main non-free contrib
deb http://debian.ustc.edu.cn/debian-security etch/updates main
deb-src http://debian.ustc.edu.cn/debian etch main non-free contrib

deb ftp://debian.ustc.edu.cn/debian etch main non-free contrib
deb-src ftp://debian.ustc.edu.cn/debian etch main non-free contrib
deb ftp://debian.ustc.edu.cn/debian-security etch/updates main

deb http://security.debian.org/ etch/updates main contrib
deb-src http://security.debian.org/ etch/updates main contrib
×××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××

运行apt-get install build-essential,结果如下:
×××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××

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:
  build-essential: Depends: libc6-dev but it is not going to be installed or
                            libc-dev
                   Depends: g++ (>= 4:4.1.1) but it is not going to be installed
E: Broken packages
×××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××

再次运行apt-get install libc-dev,结果如下:
×××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting libc6-dev instead of libc-dev
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:
  libc6-dev: Depends: libc6 (= 2.3.6.ds1-13etch9+b1) but 2.9-12 is to be installed
E: Broken packages
×××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××
我机器上libc6的版本是2.9-12,请问该如何处理?是先降级到2.3.6.ds1-13etch9+b1吗?

论坛徽章:
95
程序设计版块每日发帖之星
日期:2015-09-05 06:20:00程序设计版块每日发帖之星
日期:2015-09-17 06:20:00程序设计版块每日发帖之星
日期:2015-09-18 06:20:002015亚冠之阿尔艾因
日期:2015-09-18 10:35:08月度论坛发贴之星
日期:2015-09-30 22:25:002015亚冠之阿尔沙巴布
日期:2015-10-03 08:57:39程序设计版块每日发帖之星
日期:2015-10-05 06:20:00每日论坛发贴之星
日期:2015-10-05 06:20:002015年亚冠纪念徽章
日期:2015-10-06 10:06:482015亚冠之塔什干棉农
日期:2015-10-19 19:43:35程序设计版块每日发帖之星
日期:2015-10-21 06:20:00每日论坛发贴之星
日期:2015-09-14 06:20:00
2 [报告]
发表于 2009-08-04 19:14 |只看该作者
原帖由 john_debian 于 2009-8-4 15:49 发表
我想搭建一个c/c++的开发环境,OS版本是debian 2.6.18-6-686
sourcelist如下:
×××××××××××××××××××××××××××××××××××××××××××××××××××××××××××× ...

换用最新的稳定版吧

论坛徽章:
0
3 [报告]
发表于 2009-08-04 22:06 |只看该作者
为什么不是配套的呢?
我觉得可能是你的源写的有问题。要不然版本都应该是对的

论坛徽章:
0
4 [报告]
发表于 2009-08-05 08:59 |只看该作者

回复 #3 emmoblin 的帖子

我现在版本是2.9-12,高于所需要的libc版本,你说的源有问题是指什么?是指源上已经没有我所需要的版本了吗
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP