A molecular modeling session can be interrupted before it even begins: SAMSON starts and immediately closes, or reports a graphics-related error. On Linux, having a graphics card is only part of the picture. SAMSON also needs OpenGL libraries to be present and discoverable by the system. These checks can help narrow down whether the issue is the GPU, its driver, or a missing library.
1. Identify the graphics hardware
Start by checking which graphics device Linux sees. Open a terminal and run:
|
1 |
lspci | grep VGA |
The output may identify an NVIDIA or AMD card, or an integrated Intel graphics controller. For more detail, the documentation also suggests:
|
1 2 |
sudo lshw -c video lspci -nn | grep VGA |
If the machine has NVIDIA or AMD graphics, check that the appropriate driver for your GPU and Linux distribution is installed. If it uses integrated graphics, Mesa may be needed. The right choice depends on the hardware and platform, so avoid installing a driver intended for a different GPU.
2. Check whether OpenGL is available
SAMSON depends on the system libraries libOpenGL.so and libGLX.so (specifically, the versioned files libOpenGL.so.0 and libGLX.so.0). They are not provided by SAMSON; they need to be installed on the system.
Check the OpenGL information and search for the libraries:
|
1 2 3 4 5 |
glxinfo | grep OpenGL sudo updatedb locate libOpenGL.so locate libGLX.so locate libGL.so |
If glxinfo is not available, or the library search returns nothing, that is useful diagnostic information: the OpenGL utilities or libraries may not be installed, or the system’s file-search database may need updating. The updatedb command refreshes that database before the locate searches.
3. Install Mesa when appropriate
On Debian-based systems such as Ubuntu, the documentation gives this command for installing Mesa development libraries and utilities:
|
1 |
sudo apt-get install libgl1-mesa-dev mesa-utils |
For an integrated GPU, this is one possible route when Mesa is not already installed. If you have a discrete GPU, use the driver guidance for that specific GPU and your distribution rather than assuming the same fix applies to every system.
4. Treat library links as a last, specific check
The Linux AMD troubleshooting guidance describes creating symbolic links when a required library name is missing but a suitable library file exists elsewhere. Examples include linking SAMSON’s bundled libQt5OpenGL.so to libOpenGL.so.0, or linking a system libGL.so to libGLX.so.0.
Do not create these links blindly. First confirm that the target file actually exists at the path you plan to use; the example paths may not match your installation or distribution. A symbolic link only provides another name for a file—it does not install a missing driver or guarantee that the file is the right library. The documentation also notes that a link to SAMSON’s bundled Qt library may need to be recreated after SAMSON is updated.
A practical order of operations
When SAMSON will not launch, work from the simplest checks to the more specific fixes: identify the GPU, confirm the appropriate driver is installed, check OpenGL and library availability, then install Mesa or investigate a missing library as appropriate. This makes it easier to understand what changed and avoids applying unrelated fixes.
For the full procedures and other platform issues, see the SAMSON troubleshooting page.
Note: SAMSON and all SAMSON Extensions are free for non-commercial use. Get SAMSON.
