skm global install fails on Arch-based Linux distributions
Problem
When running the skm global install
command, you may encounter an error like the one shown below, indicating issues with unresolved references to libjxl
in SDL2_image
. This typically happens due to outdated dependencies in the default repository.
Solution
Follow the steps below to resolve the issue by upgrading dependencies or linking to updated repositories.
-
Step 1: Update System Repositories
Ensure your system’s package repositories are up-to-date by running the following command:
This will synchronize your system with the latest versions of all installed packages.
-
Step 2: Use
pamac
to Update Without AUR PackagesIf the issue persists due to
SDL2_image
dependencies (e.g.,libjxl
), usepamac
to update the package cache and repositories linked to newer dependency versions:This command ensures that your system links to updated repositories and fetches the latest dependencies for
SDL2_image
. -
Step 3: Verify Installation of
SDL2_image
DependenciesTo manually check if
libjxl
and other related dependencies are installed, run:These commands will ensure that the necessary libraries for SplashKit are correctly installed.
-
Step 4: Retry
skm global install
After updating the dependencies, retry the SplashKit global installation:
If the dependencies were resolved correctly, the installation should now complete without errors.
Additional Notes
If you encounter further errors, verify your system’s library paths and ensure libSplashKit.so
is correctly located by running: