Error while loading shared libraries, skm global install failed
Problem
When trying to run a SplashKit program, you may see an error indicating that libSplashKit.so
cannot be found. This is often due to missing or incorrect paths in the shell profile or system library configuration.
Solutions
Follow these steps to ensure your shell profile and system library paths are configured correctly.
Step 1: Update Your Shell Profile (~/.bashrc
or ~/.zshrc
)
For Bash Users:
-
Open the
~/.bashrc
file: -
Add the following line near the end of the file to include SplashKit in your PATH:
-
Save and close the file, then apply the changes:
For Zsh Users:
-
Open the
~/.zshrc
file: -
Add the following line near the end of the file:
-
Save and close the file, then update your profile:
Step 2: Update the System Library Path
To ensure the system can locate libSplashKit.so
, add /usr/local/lib
to the system’s library path:
This command configures the system to recognize libraries in /usr/local/lib
, ensuring that libSplashKit.so
is accessible to your applications.
Following these steps should resolve the libSplashKit.so
not found error and allow you to successfully run SplashKit programs on Linux.