[SOLVED] GDAL install fails due to missing shared library libIlmImf
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Did you try just rebuilding GDAL after the upgrade-all? I have found that when a previously running program fails after an update with the missing .so version error, rebuilding the app often fixes it.
However, things can change between versions, especially between major versions. Your gdal installation seems to depend upon a version 2 of openexr and you seem to have a version 3 of openexr installed.
I assume from the issue you are having and the discussion in the thread that you have upgraded your slackware install to -current from 15.0. After doing such an upgrade you will have to rebuild all your sbo packages.
sbo (and therefore tools such as sbopkg) do to track slackware library changes and so you have to do that yourself. This is especially relevant with current since .so lib version bumps are very frequent. Remember that slackbuilds.org only provide scripts to build the packages and not the packages themselves.
Also, don't forget that slackbuilds.org does not officially support -current, however in this case I do happen to also use current so I test my packages on both -stable and -current. As @3rensho said in the forum, you need to rebuild gdal against the new versions of the dependent libraries (in your case, at least openexr and poppler). Note that poppler is one of these that tends to bump the .so lib version on a very regular basis so you will need to rebuild gdal (and any open packages you have that rely on it) every time it is updated.
lol. I thought I was on 15. I honestly didn't realize that using upgrade-all would change the OS version. I thought it just updated packages, not the OS. ArTourter's explanation explains why QGIS isn't working now too. Oy vey. Thanks, everyone, for your help!
I got the GDAL to work, but after changing the libproj.so with a "ln -s" call from the version now installed (25) to the version that GDAL was looking for (22).
lol. I thought I was on 15. I honestly didn't realize that using upgrade-all would change the OS version. I thought it just updated packages, not the OS. ArTourter's explanation explains why QGIS isn't working now too. Oy vey. Thanks, everyone, for your help!
I got the GDAL to work, but after changing the libproj.so with a "ln -s" call from the version now installed (25) to the version that GDAL was looking for (22).
Upgrade-all will upgrade according to the mirrors you are pointing at. If your are pointing at the currrent tree, it will upgrade to currrent.
As for proj, please don't do this. Proj was updated and bumped the so lib version. Please rebuild the gdal package, do not simply install the old one! Same goes for qgis. Once these packages are rebuilt you will no longer have the missing lib/wrong lib version problems.
Sorry. What does "rebuild" mean? Does that mean to get the sbopkg package and just let it build that way? Or get the source from https://trac.osgeo.org/gdal/wiki/DownloadSource and build that?
my guess is that you have installed on your system some optional dependencies of gdal that use proj too like, for example, libspatialite and, in this case, you have to rebuild those too, together with all of its dependencies (removing everything first), before rebuilding gdal.
this is one of the reasons why, whenever you have to build something from SBo, it's advisable to do it, together with all of its dependencies, on a full and clean (no other packages installed) operating system (usually virtual machines and/or chroots are used for the scope).
Then the R problem started. It's unclear to me what happened. Well, I guess I should go and reinstall all the sbopkg packages. I appreciate the help, Ponce.
Then the R problem started. It's unclear to me what happened. Well, I guess I should go and reinstall all the sbopkg packages. I appreciate the help, Ponce.
libraries upgrades are normal if you run Slackware current so you have to be prepared to rebuild whatever third-party package needed.
Slackware current is not a rolling release like archlinux, it's where development of the newer release of Slackware happen, it's not meant for general use.
if you need stability use the latest stable release, 15.0: in your case, if you have set a mirror for current in /etc/slackpkg/mirrors, instead of a downgrade to 15.0, maybe a reinstall is cleaner.
Yes, it seems as if it really is the binary that directly links to libproj.
So, has the binary really recently been rebuilt from source?
Code:
ls -al /usr/bin/gdalinfo
-rwxr-xr-x 1 root root 14608 Nov 19 2019 /usr/bin/gdalinfo*
No, my binary is from 2019. That was expected on my system where noone has messed with updating libraries and tried to rebuild packages from source. But how does things look on your system? Did you really rebuild gdal from source or did you just reinstall a previously built package?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.