在./configure步骤中出错。(CentOS 7)编译器没有必要的C++;17支持

在./configure步骤中出错。(CentOS 7)编译器没有必要的C++;17支持,centos,g++,configure,Centos,G++,Configure,下半部分如下。 我们如何解决这个问题 checking whether the g++ linker (/bin/ld -m elf_x86_64) supports shared libraries... yes checking for g++ option to produce PIC... -fPIC -DPIC checking if g++ PIC flag -fPIC -DPIC works... yes checking if g++ static flag -static wo

下半部分如下。 我们如何解决这个问题

checking whether the g++ linker (/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... no
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether C++ compiler accepts -std=c++17... no
checking whether C++ compiler accepts -std=c++20... no
configure: error: Your compiler does not have the necessary C++17 support! Cannot proceed.

更新到最近的编译器?g++--version说明了什么?配置部分是什么软件?如何使用最新的编译器进行更新?这是一个g++版本。g++(GCC)4.8.5 20150623(红帽4.8.5-44)