关于linux安装nodejs出现/lib64/libstdc++.so.6: version `GLIBCXX_3.4.20‘ not found的问题
本人linux镜像为centos7,安装gcc的过程可以看上次的发布,后安装node时出现一下问题:对文件夹下进行make && make install时,出现以下问题:/gcc/node/node-v11.15.0/out/Release/torque: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (req
·
本人linux镜像为centos7,安装gcc的过程可以看上次的发布,后安装node时出现一下问题:
对文件夹下进行make && make install时,出现以下问题:
/gcc/node/node-v11.15.0/out/Release/torque: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /gcc/node/node-v11.15.0/out/Release/torque)
/gcc/node/node-v11.15.0/out/Release/torque: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /gcc/node/node-v11.15.0/out/Release/torque)
/gcc/node/node-v11.15.0/out/Release/torque: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /gcc/node/node-v11.15.0/out/Release/torque)
首先
find / -name "libstdc++.so*"
将找到的动态库libstdc++.so.6.0.21复制到/usr/lib64(最新动态库)
cp /usr/local/src/gcc-5.4.0/gcc-build-5.4.0/stage1-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs/libstdc++.so.6.0.21 /usr/lib64
切换工作目录至/usr/lib64,删除原来的软连接, 将默认库的软连接指向最新动态库
cd /usr/lib64
rm -rf libstdc++.so.6
ln -s libstdc++.so.6.0.21 libstdc++.so.6
更多推荐
已为社区贡献1条内容
所有评论(0)