当前位置: 技术问答>linux和unix
ubuntu8.04下如何安装GCC3.4.0???
来源: 互联网 发布时间:2016-03-24
本文导语: 如何安装GCC3.4.0阿,我无法安装阿,我下载好了GCC3。4。0,然后解压到gcc文件下然后打开终端,开始输入: sudo -i cd /home/xu/gcc ./configure 然后就出现了下面的提示: loading cache ./config.cache checking host system type... x86_6...
如何安装GCC3.4.0阿,我无法安装阿,我下载好了GCC3。4。0,然后解压到gcc文件下然后打开终端,开始输入:
sudo -i
cd /home/xu/gcc
./configure
然后就出现了下面的提示:
loading cache ./config.cache
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking build system type... x86_64-unknown-linux-gnu
checking for a BSD compatible install... /usr/bin/install -c
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
*** The command 'gcc -o conftest -g -O2 conftest.c' failed.
*** You must set the environment variable CC to a working compiler.
我现在就不知道怎么作了,有的说是什么
sudo apt-get install 或
sudo apt-get install build-essential
反正我这样作了是不行的,所以请求各位路过的高手,不吝赐教!Think you!
sudo -i
cd /home/xu/gcc
./configure
然后就出现了下面的提示:
loading cache ./config.cache
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking build system type... x86_64-unknown-linux-gnu
checking for a BSD compatible install... /usr/bin/install -c
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
*** The command 'gcc -o conftest -g -O2 conftest.c' failed.
*** You must set the environment variable CC to a working compiler.
我现在就不知道怎么作了,有的说是什么
sudo apt-get install 或
sudo apt-get install build-essential
反正我这样作了是不行的,所以请求各位路过的高手,不吝赐教!Think you!
|
sudo aptitude install gcc g++ libgcc1 libg++ make gdb
一次性把编程环境全部搞定......
一次性把编程环境全部搞定......
|
sudo apt-get install gcc-3.4
你要的是安装开发环境吧
sudo apt-get install build-essential
sudo apt-get install manpages manpages-dev manpages-posix manpages-posix-dev
你要的是安装开发环境吧
sudo apt-get install build-essential
sudo apt-get install manpages manpages-dev manpages-posix manpages-posix-dev