LinuxSir.cn,穿越时空的Linuxsir!

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

dev-libs/mpfr被我删除了,不能再emerge任何包了,怎么办?(Solved)

[复制链接]
发表于 2010-6-20 13:44:37 | 显示全部楼层 |阅读模式
RT,
google了,没有找到方法.求解决方法!

[daniel@T41 ~] $ sudo emerge dev-libs/mpfr -1u
Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) dev-libs/mpfr-3.0.0
* mpfr-3.0.0.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                    [ ok ]
* checking ebuild checksums ;-) ...                                     [ ok ]
* checking auxfile checksums ;-) ...                                    [ ok ]
* checking miscfile checksums ;-) ...                                   [ ok ]
* CPV:  dev-libs/mpfr-3.0.0
* REPO: gentoo
* USE:  elibc_glibc kernel_linux userland_GNU x86
>>> Unpacking source...
>>> Unpacking mpfr-3.0.0.tar.bz2 to /var/tmp/portage/dev-libs/mpfr-3.0.0/work
>>> Source unpacked in /var/tmp/portage/dev-libs/mpfr-3.0.0/work
>>> Compiling source in /var/tmp/portage/dev-libs/mpfr-3.0.0/work/mpfr-3.0.0 ...
* econf: updating mpfr-3.0.0/config.guess with /usr/share/gnuconfig/config.guess
* econf: updating mpfr-3.0.0/config.sub with /usr/share/gnuconfig/config.sub
./configure --prefix=/usr --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to disable maintainer-specific portions of Makefiles... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc
checking whether the C compiler works... no
configure: error: in `/var/tmp/portage/dev-libs/mpfr-3.0.0/work/mpfr-3.0.0':
configure: error: C compiler cannot create executables
See `config.log' for more details.

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/dev-libs/mpfr-3.0.0/work/mpfr-3.0.0/config.log
* ERROR: dev-libs/mpfr-3.0.0 failed:
*   econf failed
*
* Call stack:
*     ebuild.sh, line   54:  Called src_compile
*   environment, line 2272:  Called _eapi0_src_compile
*     ebuild.sh, line  610:  Called econf
*     ebuild.sh, line  544:  Called die
* The specific snippet of code:
*                           die "econf failed"
*
* If you need support, post the output of 'emerge --info =dev-libs/mpfr-3.0.0',
* the complete build log and the output of 'emerge -pqv =dev-libs/mpfr-3.0.0'.
* The complete build log is located at '/var/tmp/portage/dev-libs/mpfr-3.0.0/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/dev-libs/mpfr-3.0.0/temp/environment'.
* S: '/var/tmp/portage/dev-libs/mpfr-3.0.0/work/mpfr-3.0.0'

>>> Failed to emerge dev-libs/mpfr-3.0.0, Log file:

>>>  '/var/tmp/portage/dev-libs/mpfr-3.0.0/temp/build.log'

* Messages for package dev-libs/mpfr-3.0.0:

* ERROR: dev-libs/mpfr-3.0.0 failed:
*   econf failed
*
* Call stack:
*     ebuild.sh, line   54:  Called src_compile
*   environment, line 2272:  Called _eapi0_src_compile
*     ebuild.sh, line  610:  Called econf
*     ebuild.sh, line  544:  Called die
* The specific snippet of code:
*                           die "econf failed"
*
* If you need support, post the output of 'emerge --info =dev-libs/mpfr-3.0.0',
* the complete build log and the output of 'emerge -pqv =dev-libs/mpfr-3.0.0'.
* The complete build log is located at '/var/tmp/portage/dev-libs/mpfr-3.0.0/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/dev-libs/mpfr-3.0.0/temp/environment'.
* S: '/var/tmp/portage/dev-libs/mpfr-3.0.0/work/mpfr-3.0.0
发表于 2010-6-20 13:52:58 | 显示全部楼层
今天一看到3.0.0的mpfr。第一个反应就是去bugzilla找找有没有遇到问题的朋友。结果不幸的发现的一位与我相同配置环境的。还好我没有轻举妄动。

所以在出现解决的办法之前,我是先mask掉3.0.0这个版本。

可以关注一下这个反馈:

https://bugs.gentoo.org/show_bug.cgi?id=324763

=====================================

楼主你可否试着重装回原先的mpfr的版。

emerge -1av =dev-libs/mpfr-<version>
回复 支持 反对

使用道具 举报

发表于 2010-6-20 14:04:40 | 显示全部楼层
http://mirrors.163.com/ubuntu/pool/main/m/mpfr/:
把libmpfr-dev_2.4.2-3ubuntu1_i386.deb和libmpfr1ldbl_2.4.2-3ubuntu1_i386.deb下载下来,解压里面的mpf2mpfr.h、mpfr.h、libmpfr.a、libmpfr.la、libmpfr.so、libmpfr.so.1、libmpfr.so.1.2.2拷贝到相应文件夹里。
然后emerge =mpfr-2.4.2_p3。
回复 支持 反对

使用道具 举报

发表于 2010-6-20 14:07:16 | 显示全部楼层
Post by windcat;2097566
http://mirrors.163.com/ubuntu/pool/main/m/mpfr/:
把libmpfr-dev_2.4.2-3ubuntu1_i386.deb和libmpfr1ldbl_2.4.2-3ubuntu1_i386.deb下载下来,解压后将相应的mpf2mpfr.h、mpfr.h、libmpfr.a、libmpfr.la、libmpfr.so、libmpfr.so.1、libmpfr.so.1.2.2拷贝到相应文件夹里。
然后emerge =mpfr-2.4.2_p3。


emerge =mpfr-2.4.2_p3???你确定这样能安装特定版本?

是emerge =dev-libs/mpfr-2.4.1_p3
回复 支持 反对

使用道具 举报

发表于 2010-6-20 14:09:45 | 显示全部楼层
Post by 溺水三千;2097567
emerge =mpfr-2.4.2_p3???你确定这样能安装特定版本?

是emerge =dev-libs/mpfr-2.4.1_p3


可以的,你自己试试。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-6-20 14:34:07 | 显示全部楼层
Post by windcat;2097566
http://mirrors.163.com/ubuntu/pool/main/m/mpfr/:
把libmpfr-dev_2.4.2-3ubuntu1_i386.deb和libmpfr1ldbl_2.4.2-3ubuntu1_i386.deb下载下来,解压里面的mpf2mpfr.h、mpfr.h、libmpfr.a、libmpfr.la、libmpfr.so、libmpfr.so.1、libmpfr.so.1.2.2拷贝到相应文件夹里。
然后emerge =mpfr-2.4.2_p3。


这个方法可以,我将上面相应的文件cp到相应的目录后直接emerge mpfr-3.0.0,现在没事了.感谢
回复 支持 反对

使用道具 举报

发表于 2010-6-20 16:39:50 | 显示全部楼层
在mpfr-2未删除之前应该还是可以build mpfr-3,但mpfr-3要取代mpfr-2的档案。应该还可以用FEATURE="-collision_protect -protect-owned" 来强行安装。

但是mpfr-{2,3}应该是slotted。问题是portage有机制让装好mpft-3后可以删除mpfr-2而不删除colliding files吗?
回复 支持 反对

使用道具 举报

发表于 2010-6-21 09:28:08 | 显示全部楼层
用版本为3.4.6的gcc可以重装mpfr 3.0 版本,然后重新安装你的日常的gcc。

【不清楚】再用日常用的gcc 重新再安装mpfr ?
回复 支持 反对

使用道具 举报

发表于 2010-6-21 13:50:56 | 显示全部楼层
和我范了一样的错误
回复 支持 反对

使用道具 举报

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

本版积分规则

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