最近为了升级了最新的Node.js, 但 CentOS6 运行 Node.js 12 的时候会出现以下错误:

# node -v
node: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.14' not found (required by node)
node: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.18' not found (required by node)
node: /usr/lib64/libstdc++.so.6: version `CXXABI_1.3.5' not found (required by node)
node: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by node)

网上找了一些解决办法,顺便记录下来:

首先,检查动态库: