Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
在gentoo2005.1中安装php5出现问题
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index 中文 (Chinese)
View previous topic :: View next topic  
Author Message
arliu
n00b
n00b


Joined: 07 Jun 2006
Posts: 3

PostPosted: Wed Jun 07, 2006 2:29 am    Post subject: 在gentoo2005.1中安装php5出现问题 Reply with quote

提示如下:
Code:
checking whether the C compiler (gcc -O2 -mcpu=i686 -pipe -mieee ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.

!!! Please attach the config.log to your bug report:
!!! /var/tmp/portage/t1lib-5.0.2/work/t1lib-5.0.2/config.log

!!! ERROR: media-libs/t1lib-5.0.2 failed.
!!! Function econf, Line 485, Exitcode 0
!!! econf failed
!!! If you need support, post the topmost build error, NOT this status message.


/var/tmp/portage/t1lib-5.0.2/work/t1lib-5.0.2/config.log内容如下:
Code:

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:726: checking whether make sets ${MAKE}
configure:755: checking for gcc
configure:868: checking whether the C compiler (gcc -O2 -mcpu=i686 -pipe -mieee ) works
configure:884: gcc -o conftest -O2 -mcpu=i686 -pipe -mieee   conftest.c  1>&5
cc1: error: invalid option `ieee'
configure: failed program was:

#line 879 "configure"
#include "confdefs.h"

main(){return(0);}



我知道这是一个老问题,我也找到了一些解决方法,如下:
缺省地,configure挑选c++作为编译器名字并用-lg++选项的GNU c++链接。如果你正在使用gcc,这个特性在配置期间导致如下问题:
Code:

configure: error: installation or configuration problem:
C++ compiler cannot create executables.

你可能也在编译期间看到g++、libg++或libstdc++相关的问题。这些问题的一个原因是你可能没有g++,或你可能有g++但无libg++或libstdc++。看一下“config.log”文件。它应该包含你的c++编译器不能工作的准确原因!为了解决这些问题,你可以使用gcc作为你的C++编译器。试试设置环境变量CXX为"gcc -O3"。例如:
Code:

shell>CXX="gcc -O3" ./configure

它能工作,因为gcc象g++一样编译C++源代码,但缺省地它不链接libg++或libstdc++。解决这些问题的其他方法当然是安装g++、libg++和libstdc++。

可是我还是不知道咋解决?
我是用的gentoo2005.1,g++有,libg++和libstdc++没有
装软件包都是直接emerge的,怎么知道libg++和libstdc++是在哪些软件包里头呢?
用了CXX="gcc -O3" ./configure,好像不行,呜呜

哪位知道怎么解决的给个明白的解决方法好吗?谢谢了[/code]
Back to top
View user's profile Send private message
arliu
n00b
n00b


Joined: 07 Jun 2006
Posts: 3

PostPosted: Wed Jun 07, 2006 2:34 am    Post subject: Reply with quote

emerge info如下:
Code:

Portage 2.0.51.22-r2 (default-linux/x86/2005.1, gcc-3.3.5-20050130, glibc-2.3.4. 20041102-r1, 2.6.12-gentoo-r6 i686)
=================================================================
System uname: 2.6.12-gentoo-r6 i686 Intel(R) Pentium(R) 4 Mobile CPU 1.50GHz
Gentoo Base System version 1.6.12
dev-lang/python:     2.3.5
dev-python/pycrypto: [Not Present]
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -mcpu=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shu tdown /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS=""
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/ distributions/gentoo"
LANG="en_US.UTF-8"
LC_ALL="zh_CN.GBK"
LINGUAS="zh_CN"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alpha alsa apache2 apm arts audiofile avi berkdb bitmap-fonts bzip2 c dr cjk cli crypt cups curl dri dvd eds emboss encode esd exif expat fam foomatic db fortran gdbm gif glut gnome gpm gstreamer gtk gtk2 gtkhtml icc icc-pgo imlib ipv6 isdnlog java jpeg kde lcms ldap libg++ libwww mad mikmod mng motif mozilla mp3 mpeg mysql mysqli ncurses nls nsplugin ogg oggvorbis opengl oss pam pcre pdf lib perl php png pppd python qt quicktime readline reflection ruby sdl session s pell spl ssl tcltk tcpd tiff truetype truetype-fonts type1-fonts udev vorbis xml 2 xmms xorg xv zlib linguas_zh_CN userland_GNU kernel_linux elibc_glibc"
Unset:  CTARGET, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTAGE_RSYNC_ OPTS, PORTDIR_OVERLAY

有哪里设置不当的吗?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index 中文 (Chinese) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum