Sample Header Ad - 728x90

How to run node v20.x on CentOs 7.9?

1 vote
2 answers
1371 views
I've been stuck on this issue for too long. Basically I have a node v20.x app that I'd like to run on a CentOS 7.9 server. For reasons, we do not wish to upgrade the OS now but I'm sure there must be a way to run node v20? I've built and installed GCC 10.3 from source, which I've read was required for node 20 but still getting errors. These are the errors I currently have on running node . node . node: /lib64/libm.so.6: version `GLIBC_2.27' not found (required by node) node: /lib64/libc.so.6: version `GLIBC_2.28' not found (required by node) node: /lib64/libc.so.6: version `GLIBC_2.25' 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 CXXABI_1.3.9 not found (required by node) node: /lib64/libstdc++.so.6: version GLIBCXX_3.4.21 not found (required by node)` Would this be possible? And how do I proceed? Also, I'm a bit careful not to interupt the apache / mysql server running in the mean time. I've read that upgrading glibc on CentOS 7 can be extremely dangerous making the system unbootable? Is there really no safe way around this?
Asked by Z0q (631 rep)
Nov 22, 2024, 04:00 PM
Last activity: Jan 6, 2025, 12:51 PM