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

QGIS fails to load due to missing libspatialindex.so.7 #58077

Closed
2 tasks done
sy137828 opened this issue Jul 12, 2024 · 3 comments
Closed
2 tasks done

QGIS fails to load due to missing libspatialindex.so.7 #58077

sy137828 opened this issue Jul 12, 2024 · 3 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Downstream Downstream packaging issues etc. Packaging

Comments

@sy137828
Copy link

What is the bug or the crash?

Description:

I encountered an issue when trying to run a fresh installation of QGIS on Artix Linux. The error message was:

qgis: error while loading shared libraries: libspatialindex.so.7: cannot open shared object file: No such file or directory

Steps to reproduce the issue

Steps to Reproduce:

  1. Install QGIS on Artix Linux using sudo pacman -S qgis.
  2. Attempt to run QGIS.

Versions

<style type="text/css"> p, li { white-space: pre-wrap; } </style>
QGIS version 3.38.0-Grenoble QGIS code branch Release 3.38
Qt version 5.15.14
Python version 3.12.4
GDAL/OGR version 3.9.0
PROJ version 9.4.1
EPSG Registry database version v11.006 (2024-03-13)
GEOS version 3.12.2-CAPI-1.18.2
SQLite version 3.46.0
Compiled against PDAL 2.7.1 Running against PDAL 2.7.2
PostgreSQL client version 16.2
SpatiaLite version 5.1.0
QWT version 6.3.0
QScintilla2 version 2.14.1
OS version Artix Linux
       
Active Python plugins
db_manager 0.1.20

Supported QGIS version

  • I'm running a supported QGIS version according to the roadmap.

New profile

Additional context

Workaround:

I resolved the issue by creating a symbolic link to libspatialindex.so.6:

sudo ln -s /usr/lib/libspatialindex.so.6 /usr/lib/libspatialindex.so.7

Details:

  • The spatialindex package installed on Artix Linux provides libspatialindex.so.6, but QGIS seems to require libspatialindex.so.7.
  • Creating a symbolic link from libspatialindex.so.7 to libspatialindex.so.6 allowed QGIS to run successfully.

Suggestion:

Please consider updating the dependencies or providing guidance in the documentation for handling this issue. Ensuring compatibility with the available versions of libspatialindex on different distributions would be very helpful.

Environment:

OS: Artix Linux
QGIS Version: 3.38.0-Grenoble

Thank you for your attention to this matter.

@sy137828 sy137828 added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Jul 12, 2024
@nicogodet
Copy link
Member

This is likely a packing issue rather than a QGIS issue.

Look for Artix issue tracker and report your issue.

@nicogodet nicogodet added Packaging Downstream Downstream packaging issues etc. labels Jul 12, 2024
@sy137828
Copy link
Author

sy137828 commented Jul 13, 2024

Hi,

Thanks for your response. After digging into the problem, I discovered that QGIS is actually not available in Artix Linux repositories. Since I manually added the extra and multilib repositories from Arch Linux to /etc/pacman.conf, my package manager basically grabbed the QGIS package from the Arch Linux repositories.

I successfully installed QGIS in an Arch Linux VM, which leads me to believe that the issue may be due to a version mismatch between the dependency packages available in the Artix Linux and Arch Linux repositories. This mismatch likely caused the libspatialindex.so error I encountered.

To resolve dependency issues on Artix Linux, users might need to either build the QGIS package and its dependencies locally or use the workaround I employed to get the QGIS package from the Arch Linux repository running.

I guess this issue can be closed now.

Edit: Actually I found that the version of the spatialindex in the the Artix Linux world repo is 1.9.3-1, which is out-of-date, while the version available at Arch Linux Extra repo is 2.0.0-1. Manually downloading and installing spatialindex-2.0.0-1-x86_64.pkg.tar.zst from the Arch Linux repo fixed my issue.

@nicogodet
Copy link
Member

Closing as not a QGIS issue

@nicogodet nicogodet closed this as not planned Won't fix, can't repro, duplicate, stale Jul 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Downstream Downstream packaging issues etc. Packaging
Projects
None yet
Development

No branches or pull requests

2 participants