小弟刚学linux,请问C compiler cannot create executables是什么意思?

hayseed 2003-08-18 04:45:45
我想在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.
...全文
437 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
fierygnu 2003-08-18
  • 打赏
  • 举报
回复
/usr/bin/ld: cannot open crt1.o: No such file or directory
有crt1.o吗?如果没有,是gcc安装有问题。重新安装一下。
hayseed 2003-08-18
  • 打赏
  • 举报
回复
谢谢您回复!

试了,可以执行,
我用的是root,应该不是权限的问题吧?



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.

rlei 2003-08-18
  • 打赏
  • 举报
回复
up
fierygnu 2003-08-18
  • 打赏
  • 举报
回复
当前目录下有没有写权限。touch a试试。

23,110

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 应用程序开发区
社区管理员
  • 应用程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧