高手帮我看看configure后的这2段错误代码

编译安装或者制作Deb包
回复
muyufan
帖子: 95
注册时间: 2006-02-14 1:50
送出感谢: 0
接收感谢: 0
联系:

高手帮我看看configure后的这2段错误代码

#1

帖子 muyufan » 2006-06-05 21:40

刚开始

代码: 全选

checking build system type... i686-pc-linux-gnuoldld
checking host system type... i686-pc-linux-gnuoldld
checking target system type... i686-pc-linux-gnuoldld
checking for a BSD-compatible install... /usr/bin/install -c
checking for -p flag to install... yes
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... no
checking for kde-config... /usr/bin/kde-config
checking where to install... /usr (as returned by kde-config)
checking for style of include used by make... none
checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.



然后我装了 gcc 和 make

出现

代码: 全选

checking build system type... i686-pc-linux-gnulibc1
checking host system type... i686-pc-linux-gnulibc1
checking target system type... i686-pc-linux-gnulibc1
checking for a BSD-compatible install... /usr/bin/install -c
checking for -p flag to install... yes
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for kde-config... /usr/bin/kde-config
checking where to install... /usr (as returned by kde-config)
checking for style of include used by make... GNU
checking for gcc... gcc
[color=red]checking for C compiler default output file name... configure: error: C compiler cannot create executables[/color]
还有 什么要装的马
头像
oneleaf
论坛管理员
帖子: 10231
注册时间: 2005-03-27 0:06
系统: Ubuntu 12.04
送出感谢: 7 次
接收感谢: 103 次

#2

帖子 oneleaf » 2006-06-05 22:31

在 sudo 下执行试试?
aubrey
帖子: 33
注册时间: 2006-04-27 11:21
送出感谢: 0
接收感谢: 0

#3

帖子 aubrey » 2006-06-17 2:50

sudo可能解决不了问题。
你需要安装build-essential包。
如果已经安装,先remove掉,然后再重新安装一下。

$ sudo apt-get remove build-essential

then
$ sudo apt-get install build-essential

Hope it's helpful for you.
回复

回到 “编译或打包”