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: /lib64/libm.so.6: version `GLIBC_2.27' not found (required by node) #2972
Comments
Sounds like you're using an older OS that doesn't have the appropriate C libraries node requires. You may find you can install node < 18 just fine. If this is the case, it's about node's support of things and not nvm, and your only option is to upgrade your OS. |
i have same issue. |
@teachdugsimt Gatsby is a JS framework and has nothing to do with anything - i'd need info about your machine. |
I'm running into this issue as well. Posted a (hopefully) helpful fix on Stack Overflow. |
@ljharb problem occurs when I use AWS amplify with Amazon Linux:2 (default) |
That sounds like an issue that should be reported to AWS. |
I had to downgrade to node 16.16 for aws amplify |
@kekscom @teachdugsimt the thumbs down don't really make sense; nvm can't possibly do anything about missing C libraries on your machine. |
same error ec2-user: |
In my case, I had made a mess and needed to reinstall everything:
|
I ran into this on EC2 with Amazon Linux 2. Amazon now include a note about using 16 vs. 18 on Amazon Linux 2: Related: I really hope that Amazon is supporting Thanks for shouldering an enormous burden. Lots of love to |
An update on this, for anyone dealing with nvm + Amazon: Amazon Linux 2023 is now generally available, and I've just tested it with |
Sounds like this can be closed, then. |
As an aside, it has nothing to do with the release of Amazon Linux 2023 (AL2023). On AWS, this issue is caused by using If you can't switch from
Running Node.js with Docker (node:18-alpine) might solve your problem.
|
18.0.0 should work until the Ubuntu upgrade and >18.12.1 issue is resolved |
I run into the same problem with the glibc versions not found. It would be nice if they upgrade the Amazon LInux version so that it supports these libraries. The current image version is more than 2 years old now: I tried to use a custom build image with AL2023, or public.ecr.aws/amazonlinux/amazonlinux:2023, but I get an error that git is not installed on the image: /bin/sh: line 1: git: command not found I don't understand why Amazon doesn't stick to their own minimum requirements when creating an image: |
The problem remains. |
Does anyone know how to use a NodeJS 18 for AWS Amplify hosting here? |
@rudyhadoux and for anyone else running into this issue with AWS Amplify for Angular 17, I was able to resolve it by updating the Amplify build image settings. Using sidenav, go to Build Settings tab > Build Image Settings section > Edit. You'll then have a few options for the build image. I selected |
@nmatte thanks. |
Adding to this for anyone that runs into the issue in the future, trying to build a next version 14.0.1 project only worked for me by adding -nvm use 18 to the pre-build command. updating the version from build image settings still returns the same GLIBC_2.27 error. |
I think that nvm use 18 to the pre-build command is the best solution indeed. |
So what's your point is that the linux kernel version is too old to match the node v18, and the solution is either upgrade the OS kernel version or downgrade the node's version, right? |
@Flagami yes |
I just ran into this with an Angular project that I wanted to run in WSL Legacy 1.0 (because WSL 2 doesn't have file listeners). I can probably stick with Angular 16/Node 16 for now. |
Operating system and version:
Linux xxx 3.10.0-1127.el7.x86_64 #1 SMP Tue Mar 31 23:36:51 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Centos 7
nvm debug
output:nvm --version: v0.39.2
$SHELL: /bin/bash
$SHLVL: 1
whoami: 'root'
${HOME}: /root
${NVM_DIR}: '${HOME}/.nvm'
${PATH}: ${NVM_DIR}/versions/node/v19.2.0/bin:/usr/local/cpanel/3rdparty/lib/path-bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/opt/cpanel/composer/bin:${HOME}/bin
$PREFIX: ''
${NPM_CONFIG_PREFIX}: ''
$NVM_NODEJS_ORG_MIRROR: ''
$NVM_IOJS_ORG_MIRROR: ''
shell version: 'GNU bash, version 4.2.46(2)-release (x86_64-redhat-linux-gnu)'
uname -a: 'Linux 3.10.0-1127.el7.x86_64 #1 SMP Tue Mar 31 23:36:51 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux'
checksum binary: 'sha256sum'
OS version: CentOS Linux 7 (Core)
curl: /usr/bin/curl, curl 7.29.0 (x86_64-redhat-linux-gnu) libcurl/7.29.0 NSS/3.53.1 zlib/1.2.7 libidn/1.28 libssh2/1.8.0
wget: /usr/bin/wget, GNU Wget 1.14 built on linux-gnu.
git: /usr/local/cpanel/3rdparty/lib/path-bin/git, git version 2.37.4
ls: cannot access alias
/usr/bin/grep: No such file or directory
grep: alias grep='grep --color=auto'
/usr/bin/grep (grep --color=auto), grep (GNU grep) 2.20
awk: /usr/bin/awk, GNU Awk 4.0.2
sed: /usr/bin/sed, sed (GNU sed) 4.2.2
cut: /usr/bin/cut, cut (GNU coreutils) 8.22
basename: /usr/bin/basename, basename (GNU coreutils) 8.22
ls: cannot access alias
/usr/bin/rm: No such file or directory
rm: alias rm='rm -i'
/usr/bin/rm (rm -i), rm (GNU coreutils) 8.22
mkdir: /usr/bin/mkdir, mkdir (GNU coreutils) 8.22
xargs: /usr/bin/xargs, xargs (GNU findutils) 4.5.11
nvm current:
which node: ${NVM_DIR}/versions/node/v19.2.0/bin/node
which iojs: which: no iojs in (${NVM_DIR}/versions/node/v19.2.0/bin:/usr/local/cpanel/3rdparty/lib/path-bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/opt/cpanel/composer/bin:${HOME}/bin)
which npm: ${NVM_DIR}/versions/node/v19.2.0/bin/npm
npm config get prefix: node: /lib64/libm.so.6: version
GLIBC_2.27' not found (required by node) node: /lib64/libc.so.6: version
GLIBC_2.25' not found (required by node)node: /lib64/libc.so.6: version
GLIBC_2.28' not found (required by node) node: /lib64/libstdc++.so.6: version
CXXABI_1.3.9' not found (required by node)node: /lib64/libstdc++.so.6: version
GLIBCXX_3.4.20' not found (required by node) node: /lib64/libstdc++.so.6: version
GLIBCXX_3.4.21' not found (required by node)npm root -g: node: /lib64/libm.so.6: version
GLIBC_2.27' not found (required by node) node: /lib64/libc.so.6: version
GLIBC_2.25' not found (required by node)node: /lib64/libc.so.6: version
GLIBC_2.28' not found (required by node) node: /lib64/libstdc++.so.6: version
CXXABI_1.3.9' not found (required by node)node: /lib64/libstdc++.so.6: version
GLIBCXX_3.4.20' not found (required by node) node: /lib64/libstdc++.so.6: version
GLIBCXX_3.4.21' not found (required by node)nvm ls
output:How did you install
nvm
?curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash
What steps did you perform?
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash
What happened?
node: /lib64/libm.so.6: version
GLIBC_2.27' not found (required by node) node: /lib64/libc.so.6: version
GLIBC_2.25' not found (required by node)node: /lib64/libc.so.6: version
GLIBC_2.28' not found (required by node) node: /lib64/libstdc++.so.6: version
CXXABI_1.3.9' not found (required by node)node: /lib64/libstdc++.so.6: version
GLIBCXX_3.4.20' not found (required by node) node: /lib64/libstdc++.so.6: version
GLIBCXX_3.4.21' not found (required by node)What did you expect to happen?
node working
Is there anything in any of your profile files that modifies the
PATH
?If you are having installation issues, or getting "N/A", what does
curl -I --compressed -v https://nodejs.org/dist/
print out?The text was updated successfully, but these errors were encountered: