LinuxSir.cn,穿越时空的Linuxsir!

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

求教,configure失败。

[复制链接]
发表于 2007-11-20 16:49:02 | 显示全部楼层 |阅读模式
网上下载了开源软件安装。解压以后进入文件夹,输入

  1. ./configure --prefix=/usr
复制代码


然后显示

  1. ./configure --prefix=/usr
  2. checking for a BSD-compatible install... /bin/install -c
  3. checking whether build environment is sane... yes
  4. checking for gawk... gawk
  5. checking whether make sets $(MAKE)... yes
  6. checking whether to enable maintainer-specific portions of Makefiles... no
  7. checking for gcc... gcc
  8. checking for C compiler default output file name... configure: error: C compiler cannot create executables
  9. See `config.log' for more details.
复制代码


打开`config.log',显示的错误如下

  1. configure: failed program was:
  2. | /* confdefs.h.  */
  3. |
  4. | #define PACKAGE_NAME "harminv"
  5. | #define PACKAGE_TARNAME "harminv"
  6. | #define PACKAGE_VERSION "1.3.1"
  7. | #define PACKAGE_STRING "harminv 1.3.1"
  8. | #define PACKAGE_BUGREPORT "stevenj@alum.mit.edu"
  9. | #define PACKAGE "harminv"
  10. | #define VERSION "1.3.1"
  11. | /* end confdefs.h.  */
  12. |
  13. | int
  14. | main ()
  15. | {
  16. |
  17. |   ;
  18. |   return 0;
  19. | }
  20. configure:2434: error: C compiler cannot create executables
  21. See `config.log' for more details.
复制代码


请教达人,如何解决呀。
发表于 2007-11-20 18:58:28 | 显示全部楼层
编译啥东西?用什麽发行版?gcc 装了没?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-11-20 20:51:38 | 显示全部楼层
Post by d00m3d;1785248
编译啥东西?用什麽发行版?gcc 装了没?


Archlinux

安装了gcc 。

上次安装的时候没有问题,后来我的gnome出现了一个bug以后就不能启动,于是重新安装了archlinux,重新安装以后就不能使用。

  1. ./configure --prefix=/usr
复制代码

不晓得什么回事,有建议使用base-dev,但是好像不能用呀。
回复 支持 反对

使用道具 举报

发表于 2007-11-20 21:49:23 | 显示全部楼层
gcc -v 的輸出結果是?
回复 支持 反对

使用道具 举报

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

本版积分规则

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