Skip to content

Error in installing LTS version after trying latest version failure #1402

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Charlesmpc opened this issue May 27, 2022 · 13 comments
Closed

Error in installing LTS version after trying latest version failure #1402

Charlesmpc opened this issue May 27, 2022 · 13 comments
Assignees

Comments

@Charlesmpc
Copy link

Hello everyone,

I faced an issue when installing LTS version nodejs.

[ec2-user@phoenix ~]$ curl -fsSL https://rpm.nodesource.com/setup_lts.x | sudo bash -

## Installing the NodeSource Node.js 16.x repo...

Inspecting system...

  • rpm -q --whatprovides redhat-release || rpm -q --whatprovides centos-release || rpm -q --whatprovides cloudlinux-release || rpm -q --whatprovides sl-release || rpm -q --whatprovides fedora-release
  • uname -m

Confirming "el7-x86_64" is supported...

Downloading release setup RPM...

Installing release setup RPM...

  • rpm -i --nosignature --force '/tmp/tmp.SunWxdtvqt'

Cleaning up...

  • rm -f '/tmp/tmp.SunWxdtvqt'

Checking for existing installations...

  • rpm -qa 'node|npm' | grep -v nodesource

Run sudo yum install -y nodejs to install Node.js 16.x and npm.

You may run dnf if yum is not available:

 sudo dnf install -y nodejs

You may also need development tools to build native addons:

 sudo yum install gcc-c++ make

To install the Yarn package manager, run:

 curl -sL https://dl.yarnpkg.com/rpm/yarn.repo | sudo tee /etc/yum.repos.d/yarn.repo
 sudo yum install yarn

[ec2-user@phoenix ~]$ sudo yum install -y nodejs
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
amzn2-core | 3.7 kB 00:00:00
Resolving Dependencies
--> Running transaction check
---> Package nodejs.x86_64 2:18.2.0-1nodesource will be installed
--> Processing Dependency: libc.so.6(GLIBC_2.28)(64bit) for package: 2:nodejs-18.2.0-1nodesource.x86_64
--> Processing Dependency: libm.so.6(GLIBC_2.27)(64bit) for package: 2:nodejs-18.2.0-1nodesource.x86_64
--> Finished Dependency Resolution
Error: Package: 2:nodejs-18.2.0-1nodesource.x86_64 (nodesource)
Requires: libm.so.6(GLIBC_2.27)(64bit)
Error: Package: 2:nodejs-18.2.0-1nodesource.x86_64 (nodesource)
Requires: libc.so.6(GLIBC_2.28)(64bit)

You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

You can see even I used LTS v16 version to install. The yum will still try the v18, which made me confused.
Is there any easy way to switch to LTS version install?

Regards,

@JesusPaz JesusPaz self-assigned this May 27, 2022
@ssunday
Copy link

ssunday commented Jul 15, 2022

I am also having this issue on Amazon Linux 2 with Node 18.

@Qfc9
Copy link

Qfc9 commented Aug 17, 2022

Same

@jpike88
Copy link

jpike88 commented Aug 17, 2022

I have spent over 8 hours today trying to do this, this is driving me nuts. And total silence from NodeSource support.

@jpike88
Copy link

jpike88 commented Aug 17, 2022

Its because amazon linux 2 is locked to glibc version 2.26, anything that doesn't match it will fail.

@jpike88
Copy link

jpike88 commented Aug 17, 2022

please rename this issue to Does not work on Amazon Linux 2.... @JesusPaz is the above all correct?

@jpike88
Copy link

jpike88 commented Aug 17, 2022

I should also clarify, my issue is with node gallium (nsolid-v4.8.0-gallium-linux-arm64)

@jpike88
Copy link

jpike88 commented Aug 17, 2022

I've created an issue that's clearer about what's going on, this is not related to architectures
#1433

@jpike88
Copy link

jpike88 commented Aug 17, 2022

I think I found the problem, it started happening with version 4.7.0 when a newer version of GLIB_C was used to compile the LTS versions. This was obviously a mistake as it leaves Amazon Linux 2 users stuck in the cold. Version 4.6.3 should work.

@Cheng19031
Copy link

Cheng19031 commented Mar 2, 2023

I am also facing this issue now. when i have installed the node 18.14.2 on amazon linux2.
Error: Package: 2:nodejs-18.14.2-1nodesource.x86_64 (nodesource)
Requires: libc.so.6(GLIBC_2.28)(64bit)
Error: Package: 2:nodejs-18.14.2-1nodesource.x86_64 (nodesource)
Requires: libc.so.6(GLIBC_2.28)(64bit)

@riosje
Copy link
Contributor

riosje commented Mar 2, 2023

Hi @Cheng19031 Node18 requires glibc2.28 AMZN LINUX comes with glibc2.26.
This must be reported on https://github.com/nodejs/node we only create and distribute pacakges based on NODEJS binaries.
you may move to amazon linux 2022

@Cheng19031
Copy link

Thank you for your reply. I have degraded to the lower version Node16, the problem solved temporarily.
Coincidentally, I am also planning to use amazon linux 2022 recently.

@riosje
Copy link
Contributor

riosje commented May 9, 2023

As of today there is Amazon Linux 2023 which has support for node18, node19, node20

@riosje riosje closed this as completed May 9, 2023
@smittynewton
Copy link

Please fix this I can't install version 20 or 18. Have to revert to v16.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants