免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
123下一页
最近访问板块 发新帖
查看: 97310 | 回复: 21
打印 上一主题 下一主题

请问怎么会出现error: C compiler cannot create executables的错误? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-04-08 10:35 |只看该作者 |正序浏览
我打算安装db,开始抱错,要求安装gcc,安装成功gcc后gcc的错误没有了,但是还有一个错误。
root@test # env CC=gcc /db-4.3.29/dist/configure
checking build system type... sparc-sun-solaris2.9
checking host system type... sparc-sun-solaris2.9
checking if building in the top-level or dist directories... no
checking if --disable-cryptography option specified... no
checking if --disable-hash option specified... no
checking if --disable-queue option specified... no
checking if --disable-replication option specified... no
checking if --disable-statistics option specified... no
checking if --disable-verify option specified... no
checking if --enable-compat185 option specified... no
checking if --enable-cxx option specified... no
checking if --enable-debug option specified... no
checking if --enable-debug_rop option specified... no
checking if --enable-debug_wop option specified... no
checking if --enable-diagnostic option specified... no
checking if --enable-dump185 option specified... no
checking if --enable-java option specified... no
checking if --enable-mingw option specified... no
checking if --enable-o_direct option specified... no
checking if --enable-posixmutexes option specified... no
checking if --enable-rpc option specified... no
checking if --enable-smallbuild option specified... no
checking if --enable-tcl option specified... no
checking if --enable-test option specified... no
checking if --enable-uimutexes option specified... no
checking if --enable-umrw option specified... no
checking if --with-mutex=MUTEX option specified... no
checking if --with-mutexalign=ALIGNMENT option specified... no
checking if --with-tcl=DIR option specified... no
checking if --with-uniquename=NAME option specified... no
checking for ar... ar
checking for chmod... chmod
checking for cp... cp
checking for ln... ln
checking for mkdir... mkdir
checking for ranlib... ranlib
checking for ranlib... /usr/ccs/bin/ranlib
checking for rm... rm
checking for sh... sh
checking for sh... /usr/bin/sh
checking for strip... strip
checking for strip... /usr/ccs/bin/strip
checking for a BSD-compatible install... /db-4.3.29/dist/install-sh -c
checking for C compiler default output file name... configure: error: C compiler
cannot create executables
See `config.log' for more details.

config.log请看附件。谢谢!

[ 本帖最后由 erupt 于 2006-4-10 11:01 编辑 ]

config.rar

3.26 KB, 下载次数: 325

config.log请用winrar解开

论坛徽章:
0
22 [报告]
发表于 2015-06-24 16:32 |只看该作者
我也是这问题,崩溃了都。但GCC能够编译hello.c
./configure提示错误:

  1. checking whether the C compiler works... no
  2. configure: error: in `/home/xylinux/0002/cups-filters-1.0.69':
  3. configure: error: C compiler cannot create executables
复制代码
怎么搞啊,头大!

论坛徽章:
2
摩羯座
日期:2013-10-20 18:04:032015年辞旧岁徽章
日期:2015-03-03 16:54:15
21 [报告]
发表于 2013-11-09 23:10 |只看该作者
一般装gcc的时候有依赖性包需要装的,在sunfreeware那应该有,看看那些包需要装都装齐全了,然后再看看

论坛徽章:
0
20 [报告]
发表于 2013-11-09 16:27 |只看该作者
我也是 原来make /lib/cpp fails sany check
装上glibc gcc-cpp
但是configure还是错误
不知道为什么
在rpm5.3.0的安装

论坛徽章:
0
19 [报告]
发表于 2013-11-09 16:06 |只看该作者
我也是 原来make /lib/cpp fails sany check
装上glibc gcc-cpp
但是configure还是错误
不知道为什么
在rpm5.3.0的安装

论坛徽章:
0
18 [报告]
发表于 2013-11-09 16:06 |只看该作者
我也是 原来make /lib/cpp fails sany check
装上glibc gcc-cpp
但是configure还是错误
不知道为什么
在rpm5.3.0的安装

论坛徽章:
7
荣誉会员
日期:2011-11-23 16:44:17水瓶座
日期:2013-08-28 21:20:16丑牛
日期:2013-10-02 21:01:462015年迎新春徽章
日期:2015-03-04 09:54:45操作系统版块每日发帖之星
日期:2016-06-05 06:20:0015-16赛季CBA联赛之吉林
日期:2016-06-20 08:24:0515-16赛季CBA联赛之四川
日期:2016-08-18 15:02:02
17 [报告]
发表于 2010-02-04 15:26 |只看该作者
libiconv.so.2没有安装.
风之幻想 发表于 2006-04-12 14:53



    赫赫,是啊。首先得把gcc拾掇好,然后再编译。

你自己随便写个hello, world的c程序,然后用gcc编译一下,如果通过,那么再继续编译你的源代码。

论坛徽章:
0
16 [报告]
发表于 2010-02-03 16:46 |只看该作者
libiconv  libgcc都装了没

论坛徽章:
0
15 [报告]
发表于 2010-02-03 16:27 |只看该作者
我这里的情况是在Fedora 12上面,自定义的LDFLAGS;
CFLAGS="-fPIE -Os -s -pipe -fsigned-char -O3 -g -pipe -fomit-frame-pointer -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=opteron -mmmx -msse2 -msse4a -fvisibility=hidden -static"
如果去掉最后的-static选项,就没有这个报错了。具体原因请高人指教

论坛徽章:
4
白银圣斗士
日期:2015-11-24 10:40:40技术图书徽章
日期:2015-11-26 13:47:47平安夜徽章
日期:2015-12-26 00:06:30技术图书徽章
日期:2016-07-19 13:54:03
14 [报告]
发表于 2008-09-30 19:20 |只看该作者
安装gcc libc6-dev试试
  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP