安装高版本GCC
转自这里
- Download the latest GCC from http://gcc.gnu.org/
- Untar the package
- If you don’t have prerequisites for GCC, you need to the following steps:
- Go to the source directory.
- Do
./contrib/download_prerequisites
.
- Ceate a new directory called “gcc-build” peer to the source directory.
- In “gcc-build”, perform
../gcc-XXX/configure –prefix=YYY
- Do
make
andmake install
- Add “YYY/lib” or “YYY/lib64” into your LD_LIBRARY_PATH and LD_RUN_PATH