安裝GCC-4.8.1按在GCC維基定點http://gcc.gnu.org/wiki/InstallingGCC給出的安裝指導,問題而Fedora的19
tar xvzf gcc-4.8.1.tar.gz
cd gcc-4.8.1
./contrib/download_prerequisites
cd ..
mkdir objdir
cd objdir
$PWD/../gcc-4.8.1/configure --prefix=$HOME/gcc-4.8.1
make
make install
我想在我的筆記本電腦安裝gcc。但是,輸入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... /usr/bin/sed
checking for gawk... gawk
checking for libatomic support... yes
checking for libitm support... yes
checking for libsanitizer support... yes
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/home/fedora-19/Downloads/objdir':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
並且在進入下面的make命令之後顯示錯誤。
make: *** No targets specified and no makefile found. Stop.
請在這個問題上指導。