When qt5.1.0 is installed in centos, it cannot be started because it seems to be a problem with the GCC version, so it is necessary to update GCC.
1. Download the GCC source code:
Download URL: http://ftp.gnu.org/gnu/gcc/gcc-4.8.0/
Wget http://ftp.gnu.org/gnu/gcc/gcc-4.8.0/gcc-4.8.0.tar.bz2
2. decompress the file:
Tar jxvf gcc-4.8.0.tar.bz2
3. Download the dependencies required for compilation
CD gcc-4.8.0
./Contrib/download_prerequisites
CD ..
4. Create a compilation output directory
Mkdir gcc-build-4.8.0
5. Go to the directory and run the following command to generate the MAKEFILE file.
CD gcc-build-4.8.0
../Gcc-4.8.0/configure -- enable-checking = release -- enable-packages ages = C, C ++ -- disable-multilib
6. Execute the following command to compile
Make-J4
So far, the compilation process has been completed. Wait until the compilation is completed ....
7. Installation
Sudo make install
8. Check the GCC version.
GCC -- version