Skip to content

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.

Error Example

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:

  1. Open your ~/.bashrc file:

    Terminal window
    nano ~/.bashrc
  2. Add the following line near the end of the file:

    Terminal window
    export PATH="$PATH:$HOME/.splashkit"
  3. Save and close the file, then update your profile:

    Terminal window
    source ~/.bashrc

For Zsh Users:

  1. Open your ~/.zshrc file:

    Terminal window
    nano ~/.zshrc
  2. Add the following line near the end of the file:

    Terminal window
    export PATH="$PATH:$HOME/.splashkit"
  3. 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:

Terminal window
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.