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:Terminal window nano ~/.bashrc -
Add the following line near the end of the file:
Terminal window export PATH="$PATH:$HOME/.splashkit" -
Save and close the file, then update your profile:
Terminal window source ~/.bashrc
For Zsh Users:
-
Open your
~/.zshrc
file:Terminal window nano ~/.zshrc -
Add the following line near the end of the file:
Terminal window export PATH="$PATH:$HOME/.splashkit" -
Save and close the file, then update your profile:
Terminal window source ~/.zshrc
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:
sudo ldconfig /usr/local/lib
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.