Why do I see "error while loading shared libraries: libXss.so.1" when starting MATLAB on a Linux machine?

356 views (last 30 days)
Why do I see "error while loading shared libraries: libXss.so.1" when starting MATLAB in terminal on my CentOS Linux machine?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 2 Mar 2018
This issue will occur if you are missing the libXss.so.1 library, which is part of the libXScrnSaver package. To resolve this issue, run the command:
sudo yum install libXScrnSaver
 
  1 Comment
Scott Minkin
Scott Minkin on 17 Jun 2019
Edited: Scott Minkin on 17 Jun 2019
The above answer works on Redhat-based distros (Fedora, CentOS, etc.)
If you receive the libXss.so.1 error on a Debian based distro (Ubuntu, Mint, etc.), then the equivalent fix is:
sudo apt-get install libxss1

Sign in to comment.

More Answers (0)

Tags

No tags entered yet.

Products


Release

R2017b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!