Skip to content
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

Unresolveable dependencies for Node.js 18 installation at CentOS 7 #1390

Closed
alexgit2k opened this issue May 3, 2022 · 4 comments
Closed
Assignees

Comments

@alexgit2k
Copy link

When installing Node.js with:

curl -fsSL https://rpm.nodesource.com/setup_18.x | sudo bash -
yum install nodejs

it fails with:

Resolving Dependencies
--> Running transaction check
---> Package nodejs.x86_64 2:18.0.0-1nodesource will be installed
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.21)(64bit) for package: 2:nodejs-18.0.0-1nodesource.x86_64
--> Processing Dependency: libc.so.6(GLIBC_2.28)(64bit) for package: 2:nodejs-18.0.0-1nodesource.x86_64
--> Processing Dependency: libm.so.6(GLIBC_2.27)(64bit) for package: 2:nodejs-18.0.0-1nodesource.x86_64
--> Processing Dependency: libstdc++.so.6(CXXABI_1.3.9)(64bit) for package: 2:nodejs-18.0.0-1nodesource.x86_64
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.20)(64bit) for package: 2:nodejs-18.0.0-1nodesource.x86_64
--> Finished Dependency Resolution
Error: Package: 2:nodejs-18.0.0-1nodesource.x86_64 (nodesource)
           Requires: libc.so.6(GLIBC_2.28)(64bit)
Error: Package: 2:nodejs-18.0.0-1nodesource.x86_64 (nodesource)
           Requires: libstdc++.so.6(CXXABI_1.3.9)(64bit)
Error: Package: 2:nodejs-18.0.0-1nodesource.x86_64 (nodesource)
           Requires: libstdc++.so.6(GLIBCXX_3.4.21)(64bit)
Error: Package: 2:nodejs-18.0.0-1nodesource.x86_64 (nodesource)
           Requires: libstdc++.so.6(GLIBCXX_3.4.20)(64bit)
Error: Package: 2:nodejs-18.0.0-1nodesource.x86_64 (nodesource)
           Requires: libm.so.6(GLIBC_2.27)(64bit)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

Required libraries are installed:

# locate libc.so.6 libstdc++.so.6 libm.so.6
/usr/lib64/libc.so.6
/usr/lib64/libm.so.6
/usr/lib64/libstdc++.so.6
/usr/lib64/libstdc++.so.6.0.19

Packages:

# yum whatprovides /usr/lib64/libc.so.6 /usr/lib64/libm.so.6 /usr/lib64/libstdc++.so.6
libstdc++-4.8.5-44.el7.x86_64 : GNU Standard C++ Library
Repo        : base
Matched from:
Filename    : /usr/lib64/libstdc++.so.6

glibc-2.17-325.el7_9.x86_64 : The GNU libc libraries
Repo        : @updates
Matched from:
Filename    : /usr/lib64/libc.so.6

glibc-2.17-325.el7_9.x86_64 : The GNU libc libraries
Repo        : @updates
Matched from:
Filename    : /usr/lib64/libm.so.6

libstdc++-4.8.5-44.el7.x86_64 : GNU Standard C++ Library
Repo        : @base
Matched from:
Filename    : /usr/lib64/libstdc++.so.6
@JesusPaz JesusPaz self-assigned this May 3, 2022
@JesusPaz
Copy link
Contributor

JesusPaz commented May 3, 2022

Node.js 18 is compatible with Linux distributions based on glibc 2.28 or later, for example, Debian 10, RHEL 8, and Ubuntu 20.04.

You can find more information in the release notes.

@JesusPaz JesusPaz closed this as completed May 3, 2022
@alexgit2k
Copy link
Author

@JesusPaz Thanks for the information, but why is then there a repository for RHEL 7? https://rpm.nodesource.com/pub_18.x/el/7/x86_64/
And why does the setup-script https://rpm.nodesource.com/setup_18.x not inform about this?

@ylluminate
Copy link

I was just hit with this as well on Ubuntu 18.04. I'm using a nodejs based app that is still working on resolving issues that arise when using Ubuntu 20.04+. Consequently retaining support for older Ubuntu releases and other enterprise releases such as the above is highly desirable...

@cobalt2727
Copy link
Contributor

see #1392 (comment) - the build system needs to be fixed.

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

No branches or pull requests

4 participants