分页: 1 / 1

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

发表于 : 2012-09-05 17:49
木匠罗
我用的是ubuntu11.10,之前装gcc还能进行到make install 一步,但是出现问题了。后面重新开始的时候,就出现./config: command not found错误,我是在当前的目录下执行这个步骤的,求指教!

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

发表于 : 2012-09-05 18:26
YeLee
什么意思?是你运行这命令报错?还是那Makefile里面的?

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

发表于 : 2012-09-05 18:37
514617335
你是不是没写全?应该是./configure吧?

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

发表于 : 2012-09-05 20:00
木匠罗
YeLee 写了:什么意思?是你运行这命令报错?还是那Makefile里面的?
直接configure就错了

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

发表于 : 2012-09-05 20:01
木匠罗
514617335 写了:你是不是没写全?应该是./configure吧?
这个写对着呢,发帖子的时候写错了。

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

发表于 : 2012-09-05 20:05
YeLee
什么意思?有图吗? :em20 :em20 :em20

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

发表于 : 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$

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

发表于 : 2012-09-05 20:47
tommy007
我懒得骂你,就随便列点。。对你简直是无语
1. gcc还自己make
2. 完全正常还当报错了
3. 编译4.6.1这种版本
4.英语盲(和2有直接关系)

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

发表于 : 2012-09-05 20:49
YeLee
:em20 :em20 :em20

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

发表于 : 2012-09-05 20:50
木匠罗
tommy007 写了:我懒得骂你,就随便列点。。对你简直是无语
1. gcc还自己make
2. 完全正常还当报错了
3. 编译4.6.1这种版本
4.英语盲(和2有直接关系)
我是要用一个模式,然后要求gcc的版本高于4.6,机子里装的是4.5.2所以才要自己make!

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

发表于 : 2012-09-05 20:52
YeLee
自己编译多脏啊,不如自己写个control弄成deb算了。 :em04 :em04 :em04

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

发表于 : 2012-09-05 20:54
tommy007
木匠罗 写了:
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太脏。。