我也碰到了同样的情况,阿里云新购服务器,选择安装的宝塔Linux面板7.5.1
进入宝塔面板后:
1、首页更新系统
2、安装 Nodjs版本管理器,在管理器中安装nodejs 20.18.0。
3、终端查看node版本,报错
- [root@iZbp1btlindlr4y0dj0pu3Z ~]# 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)
- [root@iZbp1btlindlr4y0dj0pu3Z ~]# ldd --version
- ldd (GNU libc) 2.17
- Copyright (C) 2012 Free Software Foundation, Inc.
- This is free software; see the source for copying conditions. There is NO
- warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
- Written by Roland McGrath and Ulrich Drepper.
- [root@iZbp1btlindlr4y0dj0pu3Z ~]#
复制代码
|