emerge 更新gcc_Gentoo GCC 出问题解决方法

Gentoo GCC 被删除后解决方法

1.在其他机器上 #quickpkg gcc

* Building package for sys-devel/gcc-4.7.3-r1 ...

* Packages now in '/usr/portage/packages':

* sys-devel/gcc-4.7.3-r1: 28.5M

Gentoo sys-devel # pwd

/usr/portage/packages/sys-devel

Gentoo sys-devel # ls

gcc-4.7.3-r1.tbz2

2.scp gcc-4.7.3-r1.tbz2 到缺少GCC

3.把gcc-4.7.3-r1.tbz2 放到sys-devel 目录下

mkdir -p /usr/portage/packages/sys-devel

4.(chroot) Gentoo-20121221 ~/test # emerge -1avqK gcc #本地安装GCC

emerge: there are no ebuilds to satisfy ">=dev-libs/mpfr-2.4.2".

(dependency required by "sys-devel/gcc-4.6.3" [binary])

(dependency required by "gcc" [argument])

5.需要有gcc 放到 sys-devel

/usr/portage/packages/sys-devel

gcc-4.6.3.tbz2

6. 还有 mpfr,mpc-1.0.1放到 dev-libs.quickpkg mpfr 放到哪个目录,就放到哪个目录。

'/usr/portage/packages': dev-libs/mpfr-3.1.1: 491K

(chroot) Gentoo-20121221 /usr/portage/packages/dev-libs # emerge -1avqK gcc

[binary N ] sys-devel/gcc-4.6.3 USE="cxx fortran mudflap (multilib) nls nptl openmp (-altivec) -doc (-fixed-point) -gcj -graphite -gtk (-hardened) (-libssp) -lto -multislot -nopie -nossp -objc -objc++ -objc-gc -regression-test -vanilla"

Would you like to merge these packages? [Yes/No]

7.还有gcc-config 要安装一下

(chroot) Gentoo-20121221 /usr/portage/packages/sys-devel # emerge -1avqK gcc-config

[binary N ] sys-devel/gcc-config-1.7.3

Would you like to merge these packages? [Yes/No]

>>> Emerging binary (1 of 1) sys-devel/gcc-config-1.7.3

>>> Jobs: 0 of 1 complete, 1 running Load avg: 0.00, 0.01, 0.05openpty failed: 'out of pty devices'

>>> Installing (1 of 1) sys-devel/gcc-config-1.7.3

>>> Jobs: 1 of 1 complete Load avg: 0.00, 0.01, 0.05

* Messages for package sys-devel/gcc-config-1.7.3:

* This package will overwrite one or more files that may belong to other

* packages (see list below).

* Detected file collision(s):

* /usr/bin/gcc-config

* Searching all installed packages for file collisions...

* Press Ctrl-C to Stop

* None of the installed packages claim the file(s).

* Package 'sys-devel/gcc-config-1.7.3' merged despite file collisions.

* If necessary, refer to your elog messages for the whole content of the

* above message。

!!! existing preserved libs found

(chroot) Gentoo-20121221 /usr/portage/packages/dev-libs # emerge -1avqK mpc-1.0.1.tbz2

*** emerging by path is broken and may not always work!!!

[binary N ] dev-libs/mpfr-3.1.1 USE="-static-libs"

[binary N ] dev-libs/mpc-1.0.1 USE="-static-libs"

Would you like to merge these packages? [Yes/No]

>>> Emerging binary (1 of 2) dev-libs/mpfr-3.1.1

>>> Jobs: 0 of 2 complete, 1 running Load avg: 0.07, 0.08, 0.06openpty failed: 'out of pty devices'

>>> Installing (1 of 2) dev-libs/mpfr-3.1.1

>>> Emerging binary (2 of 2) dev-libs/mpc-1.0.1

>>> Installing (2 of 2) dev-libs/mpc-1.0.1

>>> Jobs: 2 of 2 complete Load avg: 0.14, 0.09, 0.07

!!! existing preserved libs found

>>> Emerging binary (1 of 1) sys-devel/gcc-4.6.3

>>> Jobs: 0 of 1 complete, 1 running Load avg: 0.06, 0.08, 0.06openpty failed: 'out of pty devices'

>>> Installing (1 of 1) sys-devel/gcc-4.6.3

>>> Jobs: 1 of 1 complete Load avg: 0.18, 0.10, 0.07

* Messages for package sys-devel/gcc-4.6.3:

* This package will overwrite one or more files that may belong to other

* packages (see list below).

* Detected file collision(s):

* /usr/bin/gcov-4.6.3

* /usr/bin/x86_64-pc-linux-gnu-c++-4.6.3

* /usr/bin/x86_64-pc-linux-gnu-g++-4.6.3

* /usr/bin/c++-4.6.3

* /usr/bin/cpp-4.6.3

* /usr/bin/gfortran-4.6.3

* /usr/bin/gcc-4.6.3

* /usr/bin/g++-4.6.3

* Searching all installed packages for file collisions...

* Press Ctrl-C to Stop

* None of the installed packages claim the file(s).

* Package 'sys-devel/gcc-4.6.3' merged despite file collisions. If

* necessary, refer to your elog messages for the whole content of the

* above message.

* If you have issues with packages unable to locate libstdc++.la,

* then try running 'fix_libtool_files.sh' on the old gcc versions.

* You might want to review the GCC upgrade guide when moving between

* major versions (like 4.2 to 4.3):

* http://www.gentoo.org/doc/en/gcc-upgrading.xml

8.查看一下

(chroot) Gentoo-20121221 /usr/portage/packages/dev-libs # gcc-config -l

[1] x86_64-pc-linux-gnu-4.6.3

9.其他链接。

http://blog.csdn.net/lophyxp/article/details/6051795

LC_ALL="C" emerge --oneshot gcc

export LC_ALL="C"

emerge -1 gcc

emerge --usepkg "=gcc-4.6.3" 指定gcc版本

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值