I am running an application and it throws me an error saying:
"C++ header ‘string_view’ is required. You need to install a newer libstdc++ on the host system."
Can someone guide me on what I need to do to get a newer version of "libstdc++" on my machine?
Thanks
2
Answers
Try running
yum provides libstdc++
to show you what package provided the library on your system. You can then check if those packages are available for update usingyum list available | grep <that package>
followed byyum update <that package>
.Facing the same issue, I built gcc from source. This way you get to choose your own version. It’s actually pretty straightforard — see Building GCC at https://gcc.gnu.org/wiki/InstallingGCC.