Error while loading shared libraries, skm global install failed
Problem
If you receive an error when attempting to install SplashKit using skm global install
, it’s likely because the system cannot locate the necessary SplashKit library files. Adding these paths manually can resolve the issue.
Solutions
Follow these steps to update your shell profiles and system library path to include SplashKit.
Update Your Shell Profile (~/.bashrc
or ~/.zshrc
)
For Bash Users:
-
Open your
~/.bashrc
file: -
Add the following line near the end of the file:
-
Save and close the file, then update your profile:
For Zsh Users:
-
Open your
~/.zshrc
file: -
Add the following line near the end of the file:
-
Save and close the file, then update your profile:
Update the System Library Path
To make sure your system can access the SplashKit library files, add /usr/local/lib
to the system’s library path:
This command will configure your system to recognise libraries in /usr/local/lib
, allowing SplashKit applications to locate libSplashKit.so
as needed.
Following these steps should resolve the libSplashKit.so
not found error and ensure that SplashKit can be successfully installed and run on Linux.