赞
踩
- node: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' 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/libm.so.6: version `GLIBC_2.27' not found (required by node)
- node: /lib64/libc.so.6: version `GLIBC_2.27' 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.因为目前的Node.js已经更新到v22版本。
而node v18以上就需要CLIBC更高的版本支持。配置起来比较麻烦,我已经卡了一天了。
2.突然想到,那么装v17不就好了.....
v17版本安装如下:
- # 切换到统一的安装目录
- cd /usr/local/src
- # 下载文件
- wget https://nodejs.org/download/release/v17.9.1/node-v17.9.1-linux-x64.tar.xz
- # 解压
- tar -xJf node-v17.9.1-linux-x64.tar.xz
- # 将解压文件移动到对应目录下
- mv node-v17.9.1-linux-x64 /usr/local/node-v17.9.1-linux-x64
-
-
- # 配置环境亦是
- vi /etc/profile
- # 在最后加上:
- export NODE_HOME=/usr/local/node-v17.9.1-linux-x64
- export PATH=$NODE_HOME/bin:$PATH
-
- # 保存后执行命令让环境变量生效
- source /etc/profile
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。