Gcc 4.8.1 will not

I have a new installation of Ubuntu linux and I'm trying to update my gcc-complier. The latest gcc compiler depends on gmp, mpfr, and mpc, so I downloaded them and put the source in the gcc 4.8.1 source folder as indicated.

configure seems to be working fine. I had no options because none of them were suitable. I just worked with default values.

When I run make, I get the following error:

configure: error: C++ compiler missing or inoperational make[2]: \*** [configure-stage1-libcpp] Error 1 make[2]: Leaving directory `/home/clay/programming/C++/gcc-4.8.1' make[1]: \*** [stage1-bubble] Error 2 make[1]: Leaving directory `/home/clay/programming/C++/gcc-4.8.1' make: \*** [all] Error 2 

I end the terminal window as root, and I did make distclean and tried a second time, but didn't play dice. I know that he can find both gcc and cc because he says so about make exit.

Any ideas?

+4
source share
2 answers

You need a C ++ compiler to build GCC. On Ubuntu, the C ++ compiler is in the g++ package, separate from gcc (which is a C compiler, not a C ++ compiler), so be sure to follow these steps:

 sudo apt-get install g++ 
+7
source

you must first provide a C ++ compiler to build on your computer.

 yum install gcc-c++ 
+2
source

Source: https://habr.com/ru/post/1497120/


All Articles