已经有版本4.5 4.6 想安装4.1。下载了包:
cpp-4.1_4.1.2-27ubuntu1_amd64.deb
gcc-4.1-base_4.1.2-27ubuntu1_amd64.deb
g++-4.1_4.1.2-27ubuntu1_amd64.deb
libstdc++6-4.1-dev_4.1.2-27ubuntu1_amd64.deb
gcc-4.1_4.1.2-27ubuntu1_amd64.deb
安装的时候出现以下错误,请各位大神帮忙!!
~/Downloads/gcc-4.1$ sudo dpkg -i gcc-4.1_4.1.2-27ubuntu1_amd64.deb
Selecting previously deselected package gcc-4.1.
(Reading database ... 175353 files and directories currently installed.)
Unpacking gcc-4.1 (from gcc-4.1_4.1.2-27ubuntu1_amd64.deb) ...
dpkg: dependency problems prevent configuration of gcc-4.1:
libgcc1:i386 (1:4.6.1-9ubuntu3) breaks gcc-4.1 and is installed.
libgcc1 (1:4.6.1-9ubuntu3) breaks gcc-4.1 and is installed.
dpkg: error processing gcc-4.1 (--install):
dependency problems - leaving unconfigured
Processing triggers for man-db ...
Errors were encountered while processing:
gcc-4.1
ubuntu安装低版本的GCC问题
-
- 帖子: 4
- 注册时间: 2011-10-18 0:44
- zhw2101024
- 帖子: 1849
- 注册时间: 2009-03-28 16:10
- 系统: Arch debian win7
- 联系:
Re: ubuntu安装低版本的GCC问题
这种情况最好是下载低版本gcc源代码,然后自己编译安装,否则容易出错
为什么我的问题总是没有人回答?
金钱、责任与荣誉:OpenSSL主席谈心脏出血
拥有丰富API接口和广泛程序支持的dropbox云同步,点此注册,开始就比别人多500兆,我的空间也会增加。谢啦
==========我的作品==========
我做的一个面向开发者的gnome-shell扩展,有js基础又想自己调整gnome-shell功能的可以尝试一下
gnome-shell扩展开发入门,gnome-shell扩展系统扫盲帖
金钱、责任与荣誉:OpenSSL主席谈心脏出血
拥有丰富API接口和广泛程序支持的dropbox云同步,点此注册,开始就比别人多500兆,我的空间也会增加。谢啦
==========我的作品==========
我做的一个面向开发者的gnome-shell扩展,有js基础又想自己调整gnome-shell功能的可以尝试一下
gnome-shell扩展开发入门,gnome-shell扩展系统扫盲帖
-
- 帖子: 4
- 注册时间: 2011-10-18 0:44
Re: ubuntu安装低版本的GCC问题
恩。先谢谢了。我会用源码再去试试!
但用deb包安装为什么会引起这样的问题呢,能否解决!
但用deb包安装为什么会引起这样的问题呢,能否解决!
- leeaman
- 帖子: 30702
- 注册时间: 2007-02-02 18:14
- 系统: debian sid
- 灰色小狼
- 帖子: 4585
- 注册时间: 2008-12-06 10:38
- 系统: Arch
Re: ubuntu安装低版本的GCC问题
依赖的包太多了,就下的这几个还不够
-
- 帖子: 4
- 注册时间: 2011-10-18 0:44
Re: ubuntu安装低版本的GCC问题
装低版本是为了编译现有的代码,代码比较庞大。所以对于使用高版本去编译有问题的再去改代码工作量巨大。
装gcc不就是这几个包么? 还需要什么包?
从提示来看,报的是依赖的问题,但是并没有提示具体需要依赖哪个包。
不太明白提示:
libgcc1:i386 (1:4.6.1-9ubuntu3) breaks gcc-4.1 and is installed.
libgcc1 (1:4.6.1-9ubuntu3) breaks gcc-4.1 and is installed.
装gcc不就是这几个包么? 还需要什么包?
从提示来看,报的是依赖的问题,但是并没有提示具体需要依赖哪个包。
不太明白提示:
libgcc1:i386 (1:4.6.1-9ubuntu3) breaks gcc-4.1 and is installed.
libgcc1 (1:4.6.1-9ubuntu3) breaks gcc-4.1 and is installed.
- eexpress
- 帖子: 58428
- 注册时间: 2005-08-14 21:55
- 来自: 长沙
-
- 帖子: 4
- 注册时间: 2011-10-18 0:44
Re: ubuntu安装低版本的GCC问题
如何假装?
ln -s 不只是建立一个连接而已么?
ln -s 不只是建立一个连接而已么?