在 ec2 中安装节点,Amazon Linux2 错误 glibc >= 2.28

问题描述 投票:0回答:1

尝试在以下位置安装 npm 和 node:

cat /etc/os-release
NAME="Amazon Linux"
VERSION="2"
ID="amzn"
ID_LIKE="centos rhel fedora"
VERSION_ID="2"
PRETTY_NAME="Amazon Linux 2"
ANSI_COLOR="0;33"
CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2"
HOME_URL="https://amazonlinux.com/"
SUPPORT_END="2025-06-30"

无论我使用:

curl -sL https://rpm.nodesource.com/setup_xxx.x | sudo -E bash -
还是nvm选项,我都会得到:

    Resolving Dependencies
--> Running transaction check
---> Package nodejs.x86_64 2:18.19.0-1nodesource will be installed
--> Processing Dependency: glibc >= 2.28 for package: 2:nodejs-18.19.0-1nodesource.x86_64
--> Processing Dependency: libm.so.6(GLIBC_2.27)(64bit) for package: 2:nodejs-18.19.0-1nodesource.x86_64
--> Processing Dependency: libc.so.6(GLIBC_2.28)(64bit) for package: 2:nodejs-18.19.0-1nodesource.x86_64
--> Finished Dependency Resolution
Error: Package: 2:nodejs-18.19.0-1nodesource.x86_64 (nodesource-nodejs)
           Requires: libm.so.6(GLIBC_2.27)(64bit)
Error: Package: 2:nodejs-18.19.0-1nodesource.x86_64 (nodesource-nodejs)
           Requires: libc.so.6(GLIBC_2.28)(64bit)
Error: Package: 2:nodejs-18.19.0-1nodesource.x86_64 (nodesource-nodejs)
           Requires: glibc >= 2.28
           Installed: glibc-2.26-63.amzn2.0.1.x86_64 (@amzn2-core)
               glibc = 2.26-63.amzn2.0.1
          

没有办法在这台机器上运行一些像样的版本(最好是LTS)?它不是一台旧机器,启动一个新的 ec2 会有更新的操作系统/ gcc-c++ 吗?这将允许我进行一些有用的节点设置?

node.js linux npm centos
1个回答
0
投票

我也遇到同样的问题= =等待答案。

© www.soinside.com 2019 - 2024. All rights reserved.