LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1188|回复: 5

两个gcc,怎样删除一个

[复制链接]
发表于 2006-3-3 18:38:43 | 显示全部楼层 |阅读模式
一个3.3.6,一个3.4.5,现在用的是3.4.5,怎样删除3.3.6?
发表于 2006-3-3 19:07:32 | 显示全部楼层
http://gentoo-wiki.com/HOWTO_Migrate_to_GCC_3.4


Removing gcc-3.3.x

You'll probably find that an emerge world will try and upgrade your gcc-3.3.x install even when you're running on 3.4.x. To stop this from happening you can remove gcc-3.3.x from your system.

DO NOT do this until you have tested your system with gcc 3.4.x as the following procedures disables the ability to revert back to 3.3.x.

REMEMBER this is a dangerous step and can result in an impaired system (in the case of missing libstdc++ on depclean). This step must be done after the previous ones.

If unfortunately, you have removed gcc-3.3.x without re-emerging system, you'll perhaps get an error: "libstdc++.so.5 can not be found". At this moment, you can get the file from original gentoo installation CD (unpack it from the package, be sure the gcc version is the same) and copy it to /usr/lib/, then you can go back to the previous step to re-emerge system.

N.B. Before doing this you should check that none of your packages have gcc-3.3.x as a dependency by running:

# emerge -pv --update --deep world --tree

Remove gcc-3.3.x from your system.

# emerge -C =gcc-3.3.<version>

You can find your <version> by typing

# gcc-config -l

and subsituting <version> for your entire build number - eg) =gcc-3.3.5.2005018-r1

After the unmerge you may need to repair some libraries do this using revdep-rebuild (may take some time)

# revdep-rebuild

note: some binary packages require the old libstdc++ library, these packages can be repaired by emerging libstdc++-v3 so if you get problems with missing libstdc++ usually related to realplay

# emerge libstdc++-v3
回复 支持 反对

使用道具 举报

发表于 2006-3-3 19:31:44 | 显示全部楼层
不用删gcc-config就行了。说不定以后还用得上
回复 支持 反对

使用道具 举报

发表于 2006-3-3 22:23:53 | 显示全部楼层
删不删都可以,要删的最简单的办法就是emerge -P gcc
回复 支持 反对

使用道具 举报

发表于 2006-3-4 11:13:21 | 显示全部楼层
换了gcc,那个以前好多软件要重新编译吗?代价太大了吧?用gcc-3.4.x的性能上有多少的提高呢?
回复 支持 反对

使用道具 举报

发表于 2006-3-4 11:24:11 | 显示全部楼层
我一项保留两个gcc, 现在是3.4.5 和4.1.0, 4.0.2被删除了。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表