gcc – How to run node v20.x on CentOs 7.9?

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/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)
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)

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.

Read more here: Source link