LinuxSir.cn,穿越时空的Linuxsir!

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

请教解决 configure: error: C compiler cannot create executables

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

  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.
复制代码


请教达人,如何解决呀。

附件中有config.log'全部内容。

本帖子中包含更多资源

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

x
发表于 2007-11-20 15:49:35 | 显示全部楼层
pacman -S base-devel
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-11-20 16:04:37 | 显示全部楼层
Post by 狱卒;1785149
pacman -S base-devel


使用了。

base-devel不存在。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-11-20 16:44:14 | 显示全部楼层
Post by 狱卒;1785149
pacman -S base-devel


有其他的可以代替的否,或是那里有可以下的。
回复 支持 反对

使用道具 举报

发表于 2007-11-20 21:55:52 | 显示全部楼层
你用的源里面就有。core里面。你看看make在哪个包里面。应该是base-devel里面,装上。因为现在你编译要用的什么都没有
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-11-21 10:06:06 | 显示全部楼层
问题已经解决了,谢谢 狱卒 和jarryson的指导与帮助。

我重新安装了一次系统,将系统里全部的包的更新了,跟换了以前的安装文件,这次使用的是mirror.lupaworld.com里新的2007.08-2的iso,结果就没有在提示configure错误。

不过这里还是有一点不清楚,我更新了库,但是还是没有找到base-devel,到www.archlinux.org里查找,在 ... 是什么关系。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-11-21 10:18:58 | 显示全部楼层
问题已经解决了,谢谢 狱卒 和jarryson的指导与帮助。

我重新安装了一次系统,将系统里全部的包的更新了,跟换了以前的安装文件,这次使用的是mirror.lupaworld.com里新的2007.08-2的iso,结果就没有在提示configure错误。

不过这里还是有一点不清楚,我更新了库,但是还是没有找到base-devel,到www.archlinux.org里查找,在 ... 是什么关系。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-11-21 10:24:16 | 显示全部楼层
http://www.archlinux.org/package 里找到在core下有devel,包括了10+源文件,是否是将那些都安装就可以了。
回复 支持 反对

使用道具 举报

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

本版积分规则

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