当前位置:   article > 正文

centos linux装 node.js出现 version `GLIBC_2.25‘ not found (required by node)解法

centos linux装 node.js出现 version `GLIBC_2.25‘ not found (required by node)解法
  1. node: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by node)
  2. node: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by node)
  3. node: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by node)
  4. node: /lib64/libm.so.6: version `GLIBC_2.27' not found (required by node)
  5. node: /lib64/libc.so.6: version `GLIBC_2.27' not found (required by node)
  6. node: /lib64/libc.so.6: version `GLIBC_2.28' not found (required by node)
  7. node: /lib64/libc.so.6: version `GLIBC_2.25' not found (required by node)

1.因为目前的Node.js已经更新到v22版本。

而node v18以上就需要CLIBC更高的版本支持。配置起来比较麻烦,我已经卡了一天了。

2.突然想到,那么装v17不就好了.....

v17版本安装如下:

  1. # 切换到统一的安装目录
  2. cd /usr/local/src
  3. # 下载文件
  4. wget https://nodejs.org/download/release/v17.9.1/node-v17.9.1-linux-x64.tar.xz
  5. # 解压
  6. tar -xJf node-v17.9.1-linux-x64.tar.xz
  7. # 将解压文件移动到对应目录下
  8. mv node-v17.9.1-linux-x64 /usr/local/node-v17.9.1-linux-x64
  9. # 配置环境亦是
  10. vi /etc/profile
  11. # 在最后加上:
  12. export NODE_HOME=/usr/local/node-v17.9.1-linux-x64
  13. export PATH=$NODE_HOME/bin:$PATH
  14. # 保存后执行命令让环境变量生效
  15. source /etc/profile


声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/我家自动化/article/detail/948113
推荐阅读
相关标签
  

闽ICP备14008679号