LinuxSir.cn,穿越时空的Linuxsir!

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

what's wrong with ./configure

[复制链接]
发表于 2005-2-24 18:43:59 | 显示全部楼层 |阅读模式
checking for C compiler default output file name... configure: error: C compiler cannot create executables
发表于 2005-2-28 13:36:47 | 显示全部楼层
能具体一点吗?你的问题实在很奇怪。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-2-28 15:51:18 | 显示全部楼层
gcc这里应该是过去了!但是后面就搞不明白了!

==> Validating source files with MD5sums
fcitx-3.0.2.tar.bz2 ... Passed
==> Extracting Sources...
==> tar --use-compress-program=bzip2 -xf fcitx-3.0.2.tar.bz2
==> Starting build()...
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
make: *** ûÓÐÖ¸Ã÷Ä¿±ê²¢ÇÒÕÒ²»µ½ makefile¡£ Í£Ö¹¡£
==> ERROR: Build Failed. Aborting...
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-2-28 15:58:44 | 显示全部楼层
这个是config.log

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

发表于 2005-3-1 15:28:15 | 显示全部楼层
configure:2171: gcc -march=i686 -O2 -pipe   conftest.c  >&5
/usr/bin/ld: unrecognized option '--as-needed'
/usr/bin/ld: use the --help option for usage information
collect2: ld returned 1 exit status
configure:2174: $? = 1

删除gcc,然后再重新安装gcc。看上去像是CFLAGS和头文件的问题。或者试试新的fcitx 3.1。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-3-2 00:42:51 | 显示全部楼层
估计很有可能是gcc的问题!

因为几乎所有需要./configure都报同样的错误!

但是很奇怪在用*.pkg.tar.gz的时候就没有这种问题!莫非pkg包不需要c??

现在xfce4已经起来了,还有一些别的程序需要用到gcc暂时还不能通过pacman把他卸载!谢谢你的帮助!
回复 支持 反对

使用道具 举报

发表于 2005-3-2 00:48:03 | 显示全部楼层
*.pkg.tar.gz都是binary包阿。

所有的.configure都有问题就应该是gcc的问题了。

你可以编写一个简单的程序用gcc编译一下,看看能不能编译出a.out
回复 支持 反对

使用道具 举报

发表于 2005-3-2 10:27:56 | 显示全部楼层
还有一些别的程序需要用到gcc暂时还不能通过pacman把他卸载!

没有问题呀,
pacman -Rd gcc
pacman -Sy gcc
不影响你的系统。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-3-2 15:34:57 | 显示全部楼层
pacman -Rd gcc
删除gcc然后再重新安装gcc  

./configure报同样的错误
回复 支持 反对

使用道具 举报

发表于 2005-3-3 14:36:22 | 显示全部楼层
运行/usr/bin/idconfig试一下,你的一些路径的设定可能已经混乱了,看看你的/etc/profile.d的情抗,最简单的办法是重装。
回复 支持 反对

使用道具 举报

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

本版积分规则

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