LinuxSir.cn,穿越时空的Linuxsir!

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

apache 编译问题[解决 ]

[复制链接]
发表于 2008-5-23 13:55:36 | 显示全部楼层 |阅读模式
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu

Configuring Apache Portable Runtime library ...

checking for APR... yes
  setting CC to "i486-pc-linux-gnu-gcc"
  setting CPP to "i486-pc-linux-gnu-gcc -E"
  adding "-pthread" to CFLAGS
  setting CPPFLAGS to " -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE"

Configuring Apache Portable Runtime Utility library...

checking for APR-util... yes
  adding "-L/usr/lib" to LDFLAGS
checking for i686-pc-linux-gnu-gcc... i486-pc-linux-gnu-gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/app-admin/apache-tools-2.2.8/work/httpd-2.2.8/config.log
*
* ERROR: app-admin/apache-tools-2.2.8 failed.
* Call stack:
*               ebuild.sh, line   49:  Called src_compile
*             environment, line 2331:  Called econf 'src_compile' 'src_compile' '--sbindir=/usr/sbin' '--with-perl=/usr/bin/perl' '--with-expat=/usr' '--with-z=/usr' '--with-apr=/usr' '--with-apr-util=/usr' '--with-pcre=/usr'
*               ebuild.sh, line  513:  Called die
* The specific snippet of code:
*                      die "econf failed"
*  The die message:
*   econf failed
我自己的gcc配置如下:
  senwei@localhost ~ $ gcc-config  -L
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1
senwei@localhost ~ $ gcc-config  -l
[1] i686-pc-linux-gnu-4.1.1 *
[2] i686-pc-linux-gnu-4.1.2
在/etc/make.conf下的配置:
CFLAGS="-O2 -mtune=i686 -pipe"
CHOST="i686-pc-linux-gnu"
其他的软件emerge都没问题,唯独apache的问题搞不定,大家帮忙下 谢谢了
发表于 2008-5-23 15:08:09 | 显示全部楼层
给你一个最不好的解决方案

我也没搞懂,但是使用单独下载的2008的stage-beta1(beta2)好像就会有这个问题。

gentoo-2008beta1-livedvd中包含的stage3可以解决这个问题(具体是哪个版本的不知道)

最好你有其它的方法可以解决,不然就要像我说的那样重建系统啦。祈祷一下
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-5-23 15:21:32 | 显示全部楼层
我系统刚升级,这个方法得让我好好考虑,谢谢了
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-5-23 20:42:34 | 显示全部楼层
自己up一下
回复 支持 反对

使用道具 举报

发表于 2008-5-23 20:48:21 | 显示全部楼层
或许您应该看看 http://bugs.gentoo.org
  这是鄙人搜索的结果:http://bugs.gentoo.org/show_bug.cgi?id=166670。不知是否能解决。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-5-24 01:00:43 | 显示全部楼层
谢谢,亞利艾爾
果然直接emerge -av apr
然后:
sudo apr-config --cc
再接着
sudo  apr-1-config --cc
就会自己选择新的gcc了,同样是搜索咋就差这么大,哈哈
回复 支持 反对

使用道具 举报

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

本版积分规则

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