Why do I get a "libXt.so.6: cannot open shared object file" error when trying to open any ".ctf" apps on my MATLAB R2024a Web App Server Running on CentOS?

45 views (last 30 days)

I have a web app server running on CentOS 9 which seems to start and run normally. I can upload ".ctf" file to my server and they successfully show up on my web app server with their status listed as "ok". However, when I click on one of the apps to open it, it does not open, and eventually I receive the error:

Something went wrong. Click "OK" or refresh to page to restart the app
After enabling verbose logging on my server and looking at the "webapps_launcher_<timestamp>.log" log I see multiple occurrences of this error:

Error loading /usr/local/MATLAB/MATLAB_Runtime/R2023b/bin/glnxa64/matlab_startup_plugins/matlab_graphics_ui/mwuixloader.so. libXt.so.6: cannot open shared object file: No such file or directory
What is this error and why can't I open applications on my web app server?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 6 Jun 2024
For this error, it seems like you might be missing a library needed for graphics. You should be able to install this using your preferred package manager, for example:
sudo apt-get install libxt6
To resolve the error, try installing the missing library mentioned above and restarting the server.
The reason this library is missing which triggered the error is likely related to the specific Linux distribution. As mentioned in the following documentation, CentOS 9 is unfortunately not one of our supported operating systems. However, it is still possible to work with CentOS when installing the necessary packages.
 
MATLAB and Simulink are validated on standard installations of the distributions listed on the above page. “Minimal” or “core” installations of Linux may lack the necessary software packages required to install and run MATLAB and Simulink. Information about which packages are required to run MATLAB is available here:
In addition to installing "libxt6" to resolve this issue, you should also confirm that you have all libraries required from the above MATLAB Answers post.

More Answers (0)

Categories

Find more on MATLAB Production Server in Help Center and File Exchange

Products


Release

R2024a

Community Treasure Hunt

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

Start Hunting!