免费注册 查看新帖 |

Chinaunix

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

C compiler cannot create executables? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-08-18 16:37 |只看该作者 |倒序浏览
我想在debian下装pure-ftpd,却遇到这个问题,顿时手足无措,
请前辈们讲讲可能是什么出了问题呢?应该怎么解决呢?

hayseed@develop:~/pure-ftpd-1.0.15$ ./configure \
>; -prefix=/usr/local/pureftpd
--with-mysql \
--with-diraliases \
--with-ftpwho \
--with-throttling \
--without-inetd \
--without-shadow \
--with-quotaschecking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... no
checking for a BSD-compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking for gcc... gcc
checking for C compiler default output... configure: error: C compiler cannot create executables
See `config.log' for more details.

论坛徽章:
0
2 [报告]
发表于 2003-08-18 17:30 |只看该作者

C compiler cannot create executables?

config.log中相应的内容:


## ----------- ##
## Core tests. ##
## ----------- ##
configure:1388: checking for a BSD-compatible install
configure:1442: result: /usr/bin/install -c
configure:1453: checking whether build environment is sane
configure:1496: result: yes
configure:1529: checking for gawk
configure:1558: result: no
configure:1529: checking for mawk
configure:1545: found /usr/bin/mawk
configure:1555: result: mawk
configure:1565: checking whether make sets $(MAKE)
configure:1589: result: no
configure:1758: checking for a BSD-compatible install
configure:1812: result: /usr/bin/install -c
configure:1864: checking for ranlib
configure:1880: found /usr/bin/ranlib
configure:1891: result: ranlib
configure:1949: checking for gcc
configure:1965: found /usr/bin/gcc
configure:1975: result: gcc
configure:2219: checking for C compiler version
configure:2222: gcc --version </dev/null >;&5
2.95.4
configure:2225: $? = 0
configure:2227: gcc -v </dev/null >;&5
Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.4/specs
gcc version 2.95.4 20011002 (Debian prerelease)
configure:2230: $? = 0
configure:2232: gcc -V </dev/null >;&5
gcc: argument to `-V' is missing
configure:2235: $? = 1
configure:2259: checking for C compiler default output
configure:2262: gcc    conftest.c  >;&5
/usr/bin/ld: cannot open crt1.o: No such file or directory
collect2: ld returned 1 exit status
configure:2265: $? = 1
configure: failed program was:
| #line 2238 "configure"
| /* confdefs.h.  */
|
| #define PACKAGE_NAME "pure-ftpd"
| #define PACKAGE_TARNAME "pure-ftpd"
| #define PACKAGE_VERSION "1.0.15"
| #define PACKAGE_STRING "pure-ftpd 1.0.15"
| #define PACKAGE_BUGREPORT "bugs@pureftpd.org"
| #define PACKAGE "pure-ftpd"
| #define VERSION "1.0.15"
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:2304: error: C compiler cannot create executables
See `config.log' for more details.

论坛徽章:
0
3 [报告]
发表于 2003-08-18 17:55 |只看该作者

C compiler cannot create executables?

configure:2262: gcc conftest.c >;&5
/usr/bin/ld: cannot open crt1.o: No such file or directory
collect2: ld returned 1 exit status


gcc在测试用链接到crt1.o库时没有找到crt1.o这个库,用find命令找到这个库,将之加到 LD_LIBRARY_PATH中即可

论坛徽章:
0
4 [报告]
发表于 2003-08-18 19:13 |只看该作者

C compiler cannot create executables?

我找了,怎么没有?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP