关于装gcc时遇到的问题:configure: error:

来源:百度知道 编辑:UC知道 时间:2024/07/08 11:09:20
关于装gcc时遇到的问题:
系统提示
[root@depserver gcc-4.0.1]# ./configure --prefix='/gcc/gcc-build'
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build 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
configure: error: Building in the source directory is not supported in this release. See http://gcc.gnu.org/install/configure.html for more details.
怎么样才能知道自己的linux要用那个版本的gcc,还有应该装在那个目录??

提示的是你没有/gcc/gcc-build'目录

mkdir /gcc/gcc-build
建一个不就得了

应该直接可以安装的,比如,fedora 9,是这样安装,yum install gcc,ubuntu是这样的,apt-get install gcc ,只要你连在网上