安装gcc时出现./config: command not found

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
木匠罗
帖子: 34
注册时间: 2012-07-25 22:03

安装gcc时出现./config: command not found

#1

帖子 木匠罗 » 2012-09-05 17:49

我用的是ubuntu11.10,之前装gcc还能进行到make install 一步,但是出现问题了。后面重新开始的时候,就出现./config: command not found错误,我是在当前的目录下执行这个步骤的,求指教!
头像
YeLee
论坛版主
帖子: 26406
注册时间: 2008-08-13 8:48
系统: Fundu i64
来自: 东海硇州,一双管钥。
联系:

Re: 安装gcc时出现./config: command not found

#2

帖子 YeLee » 2012-09-05 18:26

什么意思?是你运行这命令报错?还是那Makefile里面的?
◎当我站在道德的高度上俯视别人的时候,发现自己是多么渺小。
♥执着但不偏激,反对而不排斥,坚决捍卫矛盾体的存在方式。
★★★天气预报★★★
fcitx-yatable一个可以使用的码表输入法
[教程]几个实例攻克软件编译难关
Gentoo Development Guide
字体相关
514617335
帖子: 21
注册时间: 2010-07-09 17:12

Re: 安装gcc时出现./config: command not found

#3

帖子 514617335 » 2012-09-05 18:37

你是不是没写全?应该是./configure吧?
木匠罗
帖子: 34
注册时间: 2012-07-25 22:03

Re: 安装gcc时出现./config: command not found

#4

帖子 木匠罗 » 2012-09-05 20:00

YeLee 写了:什么意思?是你运行这命令报错?还是那Makefile里面的?
直接configure就错了
木匠罗
帖子: 34
注册时间: 2012-07-25 22:03

Re: 安装gcc时出现./config: command not found

#5

帖子 木匠罗 » 2012-09-05 20:01

514617335 写了:你是不是没写全?应该是./configure吧?
这个写对着呢,发帖子的时候写错了。
头像
YeLee
论坛版主
帖子: 26406
注册时间: 2008-08-13 8:48
系统: Fundu i64
来自: 东海硇州,一双管钥。
联系:

Re: 安装gcc时出现./config: command not found

#6

帖子 YeLee » 2012-09-05 20:05

什么意思?有图吗? :em20 :em20 :em20
◎当我站在道德的高度上俯视别人的时候,发现自己是多么渺小。
♥执着但不偏激,反对而不排斥,坚决捍卫矛盾体的存在方式。
★★★天气预报★★★
fcitx-yatable一个可以使用的码表输入法
[教程]几个实例攻克软件编译难关
Gentoo Development Guide
字体相关
木匠罗
帖子: 34
注册时间: 2012-07-25 22:03

Re: 安装gcc时出现./config: command not found

#7

帖子 木匠罗 » 2012-09-05 20:13

YeLee 写了:什么意思?有图吗? :em20 :em20 :em20
现在的错先的错误是:
senna@senna:/tmp/gcc-4.6.1$ sudo ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for a sed that does not truncate output... /bin/sed
checking for gawk... no
checking for mawk... mawk
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for gnatbind... no
checking for gnatmake... no
checking whether compiler driver understands Ada... no
checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1 $$f2
checking for objdir... .libs
checking for the correct version of gmp.h... yes
checking for the correct version of mpfr.h... yes
checking for the correct version of mpc.h... yes
checking for the correct version of the gmp/mpfr/mpc libraries... yes
checking for PWL_handle_timeout in -lpwl... no
checking for version 0.11 (revision 0 or later) of PPL... no
The following languages will be built: c,c++,fortran,java,lto,objc
*** This configuration is not supported in the following subdirectories:
gnattools target-libada target-libgo
(Any other directories should still work fine.)
checking for default BUILD_CONFIG... bootstrap-debug
checking for bison... no
checking for byacc... no
checking for yacc... no
checking for bison... no
checking for gm4... no
checking for gnum4... no
checking for m4... m4
checking for flex... no
checking for lex... no
checking for flex... no
checking for makeinfo... no
checking for expect... no
checking for runtest... no
checking for ar... ar
checking for as... as
checking for dlltool... no
checking for ld... ld
checking for lipo... no
checking for nm... nm
checking for ranlib... ranlib
checking for strip... strip
checking for windres... no
checking for windmc... no
checking for objcopy... objcopy
checking for objdump... objdump
checking for cc... cc
checking for c++... c++
checking for gcc... gcc
checking for gcj... no
checking for gfortran... gfortran
checking for gccgo... no
checking for ar... no
checking for ar... ar
checking for as... no
checking for as... as
checking for dlltool... no
checking for dlltool... no
checking for ld... no
checking for ld... ld
checking for lipo... no
checking for lipo... no
checking for nm... no
checking for nm... nm
checking for objdump... no
checking for objdump... objdump
checking for ranlib... no
checking for ranlib... ranlib
checking for strip... no
checking for strip... strip
checking for windres... no
checking for windres... no
checking for windmc... no
checking for windmc... no
checking where to find the target ar... host tool
checking where to find the target as... host tool
checking where to find the target cc... just compiled
checking where to find the target c++... just compiled
checking where to find the target c++ for libstdc++... just compiled
checking where to find the target dlltool... host tool
checking where to find the target gcc... just compiled
checking where to find the target gcj... just compiled
checking where to find the target gfortran... just compiled
checking where to find the target gccgo... host tool
checking where to find the target ld... host tool
checking where to find the target lipo... host tool
checking where to find the target nm... host tool
checking where to find the target objdump... host tool
checking where to find the target ranlib... host tool
checking where to find the target strip... host tool
checking where to find the target windres... host tool
checking where to find the target windmc... host tool
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether -fkeep-inline-functions is supported... yes
configure: creating ./config.status
config.status: creating Makefile
senna@senna:/tmp/gcc-4.6.1$
头像
tommy007
帖子: 1352
注册时间: 2007-02-18 0:42

Re: 安装gcc时出现./config: command not found

#8

帖子 tommy007 » 2012-09-05 20:47

我懒得骂你,就随便列点。。对你简直是无语
1. gcc还自己make
2. 完全正常还当报错了
3. 编译4.6.1这种版本
4.英语盲(和2有直接关系)
头像
YeLee
论坛版主
帖子: 26406
注册时间: 2008-08-13 8:48
系统: Fundu i64
来自: 东海硇州,一双管钥。
联系:

Re: 安装gcc时出现./config: command not found

#9

帖子 YeLee » 2012-09-05 20:49

:em20 :em20 :em20
◎当我站在道德的高度上俯视别人的时候,发现自己是多么渺小。
♥执着但不偏激,反对而不排斥,坚决捍卫矛盾体的存在方式。
★★★天气预报★★★
fcitx-yatable一个可以使用的码表输入法
[教程]几个实例攻克软件编译难关
Gentoo Development Guide
字体相关
木匠罗
帖子: 34
注册时间: 2012-07-25 22:03

Re: 安装gcc时出现./config: command not found

#10

帖子 木匠罗 » 2012-09-05 20:50

tommy007 写了:我懒得骂你,就随便列点。。对你简直是无语
1. gcc还自己make
2. 完全正常还当报错了
3. 编译4.6.1这种版本
4.英语盲(和2有直接关系)
我是要用一个模式,然后要求gcc的版本高于4.6,机子里装的是4.5.2所以才要自己make!
头像
YeLee
论坛版主
帖子: 26406
注册时间: 2008-08-13 8:48
系统: Fundu i64
来自: 东海硇州,一双管钥。
联系:

Re: 安装gcc时出现./config: command not found

#11

帖子 YeLee » 2012-09-05 20:52

自己编译多脏啊,不如自己写个control弄成deb算了。 :em04 :em04 :em04
◎当我站在道德的高度上俯视别人的时候,发现自己是多么渺小。
♥执着但不偏激,反对而不排斥,坚决捍卫矛盾体的存在方式。
★★★天气预报★★★
fcitx-yatable一个可以使用的码表输入法
[教程]几个实例攻克软件编译难关
Gentoo Development Guide
字体相关
头像
tommy007
帖子: 1352
注册时间: 2007-02-18 0:42

Re: 安装gcc时出现./config: command not found

#12

帖子 tommy007 » 2012-09-05 20:54

木匠罗 写了:
tommy007 写了:我懒得骂你,就随便列点。。对你简直是无语
1. gcc还自己make
2. 完全正常还当报错了
3. 编译4.6.1这种版本
4.英语盲(和2有直接关系)
我是要用一个模式,然后要求gcc的版本高于4.6,机子里装的是4.5.2所以才要自己make!
GCC 4.5.4 released [2012-07-02]
GCC 4.7.1 released [2012-06-14]
GCC 4.7.0 released [2012-03-22]
GCC 4.4.7 released [2012-03-13]
GCC 4.6.3 released [2012-03-01]

make 4.6.1你搞错没?
话说回来你有这个功夫系统都装完了5次了
gcc自己make太脏。。
回复