dotnet --info hitting /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found on Latest net8.0
See original GitHub issueDescribe the bug
After installing the latest 8.0 daily dotnet using the dotnet-install script onto a clean ubuntu-20.04 or ubuntu-22.04 image, running dotnet --info errors out with:
dotnet: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by dotnet)
dotnet: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by dotnet)
To Reproduce
On a clean ubuntu-22.04 image, download the dotnet-install.sh script.
Run: .\dotnet-install.sh -Architecture x64 -Channel 8.0 -Quality daily
,
Run: dotnet --info
The failure should occur here.
Exceptions (if any)
dotnet: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by dotnet)
dotnet: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by dotnet)
Further technical details
Last known working SDK version: 8.0.100-preview.3.23178.7 Failing SDK version: 8.0.100-preview.4.23219.2
Thank you!
Issue Analytics
- State:
- Created 5 months ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
libstdc++.so.6: version `GLIBCXX_3.4.20' not found
Here's a solution for this problem in Ubuntu 16.04 sudo add-apt-repository ppa:ubuntu-toolchain-r/test sudo apt-get update sudo apt-get ...
Read more >GLIBCXX_3.4.20 not found, how to fix this error?
The issue is almost always caused by your system not pointing to the right library. In my case, usually caused by pointing to...
Read more >usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.14' not found
Hi Everyone, I get a new code I have to improve, to run the code I have to do: make ./main_run <list_file
Read more >lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found
/lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found. Latest response April 5 2022 at 9:36 AM. Hello. I'm trying to build and and install plv8 ...
Read more >What is libstdc++.so.6 and GLIBCXX_3.4.20?
I am trying to install a R library which is failing with the error: /lib64/libstdc++.so.6: version ``GLIBCXX_3.4.20'' not found.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
For anyone else who hits this issue: .NET 8 drops support fer CentOS 7 (see the plan in https://github.com/dotnet/runtime/issues/83428). CentOS 7 doesn’t have the newer glibc that we depend on.
Looks like this was being hit because the centOS container we were using doesn’t have the GLIBCXX versions in the default paths. I am not sure if they have them installed in general, but I found this on SO https://stackoverflow.com/questions/44205687/glibcxx-3-4-21-not-found-on-centos-7 that somewhat indicates it does. To fix this we switched the containers we could to ubuntu 18.04 containers. Thanks for the help!