Red Hat Bugzilla – Bug 1473088
http-parser missing as a dependency
Last modified: 2017-07-24 06:22:33 EDT
Description of problem:
Installing npm has some dependency issues on RHEL 7. One one system, it pulled in nodejs010-http-parser and nodejs010-runtime from my RH SCL channel. This eventually fails to find the library with the following error: "node: error while loading shared libraries: libhttp_parser.so.2: cannot open shared object file: No such file or directory" because the libraries are installed under /opt/rh as a part of the SCL package that it pulls in. Instead, it should have pulled in the http-parser package from EPEL. This has also been documented on this blog: https://medium.com/@genebean/node-js-centos7-and-libhttp-parser-so-2-abb725e1aae8. On a different system, it worked fine, and seems to have got the right dependency. I'm not sure what triggers it to pull in the SCL package.
Version-Release number of selected component (if applicable):
How reproducible: Not sure
Steps to Reproduce:
1. sudo yum install npm
node: error while loading shared libraries: libhttp_parser.so.2: cannot open shared object file: No such file or directory
I think this bug should be filed against node in scl, not node in epel. I don't know where SCL bugs are tracked.
Ah, I think I misread. You don't want to use the SCL npm? Then yum erase it, disable the scl repo in /etc/yum.repos.d, verify EPEL repo is enabled and SCL disabled (yum repolist), and yum install it again.
npm is still installed from epel. It just fails to find the correct dependencies. i.e., If scl and epel are enabled, and you call yum install npm, you get something that doesn't work. If epel's npm needs epel's http-parser, it should be packaged that way.
I think the issue is that nodejs010-http-parser.x86_64 provides a generic so library instead of the scl specific one. This seems to be fixed/improved in nodejs4 scl.
$ dnf repoquery --provides rh-nodejs4-http-parser.x86_64
$ dnf repoquery --provides nodejs010-http-parser.x86_64
As epel-npm (or actually nodejs) requires libhttp_parser.so.2 and the scl http-parser package claims to provide that I think this should be filed against nodejs-010-http-parser.
@zsvetlik: Could you comment on this as you know way more about scl than me?
Yes, it is a bug in nodejs010-http-parser, but won't be fixed since nodejs010 SCL is EOL.
Did you try installing nodejs from epel-testing?
*** This bug has been marked as a duplicate of bug 1457763 ***