最近在linux跑nodejs碰到版本问题,记录如下:
问题1:
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)
node: /lib64/libc.so.6: version `GLIBC_2.16' not found (required by node)
node: /lib64/libc.so.6: version `GLIBC_2.17' not found (required by node)
node: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by node)
解决:
下载libstdc++.so.6.0.17更换libstdc++.so.6.0.13;
参考:https://www.cnblogs.com/kumufengchun/p/10455537.html
问题2:
node: error while loading shared libraries: libstdc++.so.6: wrong ELF class: ELFCLASS32
这个问题的出现是使用libstdc++.so.6.0.19(本来就是64位),郁闷了。
解决:
突发奇想把nodejs版本降到10(原来是12),问题解决;