I am trying to install a bunch of open source libraries on a CentOS 7 server, and they all form a fairly complicated web of dependencies on each other. I need to make sure that there are no versioning conflicts ("library hell") where, say, LibA
depends on LibB v.1.2
but I install LibB v0.9
by mistake.
So I need to:
- Figure out what versions of each library I need (so that they all depend on the right versions of each other); and then
- Use
yum
to install the correct versions
And although I'm going to mention specific libraries here in a second, I think this question can be genericized to any scenario where there are interdependencies between yum
libraries.
Specifically, I'm looking to install:
libpng-dev
(PNG library)libjpeg-dev
(JPEG library)libtiff-dev
(TIFF library)libopencv-dev
(OpenCV)
The thing is, OpenCV has dependencies on the first three. So I need to make sure that the version of the PNG, JPEG and TIFF libraries that yum
installs for me are also compatible with the versions that OpenCV expects.
Also, for each of those 4 libraries, I'd like to run a command that verifies the exact version that is currently installed on my system.
Any ideas as to where I can get started? Thanks in advance!