./configure时候出的问题

编译打包和其他
回复
crisman
帖子: 7
注册时间: 2008-08-03 15:34

./configure时候出的问题

#1

帖子 crisman » 2008-08-05 19:42

装了一个ubuntu系统。每次装tar.gz类型文件的时候需要./configure。每次都不能成功编译。不知道什么原因
报错:

checking 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)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for a BSD-compatible install... /usr/bin/install -c
checking for python... /usr/bin/python
checking for version... 2.5
checking for platform... linux2
checking for gconftool-2... /usr/bin/gconftool-2
checking for scrollkeeper-config... /usr/bin/scrollkeeper-config
checking for intltool >= 0.21... 0.30 found
checking for perl... /usr/bin/perl
checking for XML: arser... ok
checking for iconv... /usr/bin/iconv
checking for msgfmt... msgfmt
checking for msgmerge... msgmerge
checking for xgettext... xgettext
Using config source xml:merged:/etc/gconf/gconf.xml.defaults for schema installation
Using $(sysconfdir)/gconf/schemas as install directory for schema files
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.

===================================================
有人要我重装gcc但是也不成功。出现以下错误。

administrator@administrator-desktop:~/桌面$ sudo apt-get build-dep gcc
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
Reading state information... 完成
E: 无法打开文件 /var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_hardy-security_universe_source_Sources - open (2 No such file or directory)
----------------------------------------------------
请问到底要怎么样解决上述2个错误。求解答
klose911
帖子: 106
注册时间: 2008-02-01 17:18

#2

帖子 klose911 » 2008-08-06 0:43

试试看sudo apt-get install build-essential
lfs09
帖子: 69
注册时间: 2008-04-24 9:20

#3

帖子 lfs09 » 2008-08-07 11:07

权限 ??
回复