node -v
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)
1.准备
sudo yum provides libstdc++.so.6
2.下载新版本的libstdc.so
cd /usr/local/lib64
sudo wget http://www.vuln.cn/wp-content/uploads/2019/08/libstdc.so_.6.0.26.zip
unzip libstdc.so_.6.0.26.zip
cp libstdc++.so.6.0.26 /usr/lib64
cd /usr/lib64
3.检查libstdc++.so.6的软链接版本
ls -l | grep libstdc++
可能显示如下:
libstdc++.so.6 ->libstdc++.so.6.0.19
4.删除/usr/lib64原链接libstdc++.so.6,删除前可以先备份。
sudo rm libstdc++.so.6
然后重新链接。
sudo ln -s libstdc++.so.6.0.26 libstdc++.so.6
检查最新链接
strings /usr/lib64/libstdc++.so.6 | grep GLIBCXX
可能显示如下:
GLIBCXX_3.4
…
GLIBCXX_3.4.25
GLIBCXX_3.4.26
GLIBCXX_DEBUG_MESSAGE_LENGTH
完毕!
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
暂无评论内容