Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

node/npm error: lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.30' not found #54

Open
gurgunday opened this issue May 13, 2023 · 4 comments

Comments

@gurgunday
Copy link

It's weird because node 18 works but node 20 doesn't.

OS: Ubuntu 20.04.6

Full error:

/snap/node/7476/bin/node: /lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by /snap/node/7476/bin/node)
/snap/node/7476/bin/node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /snap/node/7476/bin/node)
/snap/node/7476/bin/node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /snap/node/7476/bin/node)
/snap/node/7476/bin/node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /snap/node/7476/bin/node)
@gurgunday
Copy link
Author

Installing Node directly fixes the issue, however the issue stands for the snap

@rvagg
Copy link
Member

rvagg commented May 15, 2023

Oh, that is interesting .. it's related to the recent update to core22 for the Node.js v20 Snap. I believe what's happening here is that core22 means it's linking into the system libc and libstdc++ rather than the Snap "core" libraries. See my output here: #50 (comment)

But you're on 20.04, so don't have the 22.04 libraries installed but Snap isn't accounting for that. I'll have to do some research but it could be that core22 means we can't support distros before 22.04, but that seems to break one of the core value propositions of Snaps! There might be a way to force linking into Snap-managed libraries but I'm not sure what that may be.

If you'd like to help research and figure this out then the help would be appreciated, I'm not sure I'm going to have time to look at this any time soon.

@zyv
Copy link

zyv commented Nov 13, 2023

@rvagg have you found a solution for Ubuntu 20.04 LTS? We started upgrading our systems to Node 20 snaps and hit this issue. Unless this can be solved in the short term we have to find another solutions. As you say, such problems actually undermine the whole value proposition behind snaps...

@mokhosh
Copy link

mokhosh commented Jan 8, 2024

Any updates or fixes for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants