ubuntu linux软件安装问题

来源:百度知道 编辑:UC知道 时间:2024/05/21 17:07:56
kobe@kobe-desktop:~/Desktop/gcc-4.2-20060715$ ./configure
loading cache ./config.cache
checking host system type... i686-pc-linux-gnuoldld
checking target system type... i686-pc-linux-gnuoldld
checking build system type... i686-pc-linux-gnuoldld
checking for a BSD compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for gcc... no
checking for cc... no
configure: error: no acceptable cc found in $PATH
我是linux初学者,认为这个问题是缺少编译器,但我现在就在装gcc,可是提示cc没有,怎么办?

i) 如果是没装gcc,在root身份下,执行
apt-get install gcc ,
视网络速度,一般5~10分钟安装完毕;
ii)如果确实已安装gcc,请将gcc所在的目录加入$PATH中。

sudo apt-get install build-essential gcc g++