Latest version of MATLABConnector Linux problem

The MATLAB connector version 2025.2.2.1 (latest version ... upgraded just now) produce the following Warning message during startup:
$ MATLABConnector start
$ Warning: program compiled against libxml 212 using older 209
I am using LinuxMint 21.1 (equivalent to the Ubuntu 24.04.1).
Any idea, what is wrong??? Previos version 2025.2.0.3 works without any warning message.
Additional info: Is this problem connected with this bug?

6 Kommentare

I noticed this as well, both with MLC and running matlab from the command line. The issue is caused by:
/usr/lib/x86_64-linux-gnu/libxml2.so.2 -> libxml2.so.2.9.14
/usr/lib/x86_64-linux-gnu/libxml2.so.2.9.14
vs
/usr/local/MATLAB/R2024b/bin/glnxa64/libxml2.so.2.12.5
209 is the version in 24.04; 212 first appears in 24.10. You could change the link for /usr/lib/x86_64-linux-gnu/libxml2.so.2 to point to /usr/local/MATLAB/R2024b/bin/glnxa64/libxml2.so.2.12.5, but there might be consequences for other programs that link to libxml2. Conversely, MathWorks could explain what nifty new features depend on 212 that would make me want to upgrade from a LTS version of Ubuntu, or test new releases on the most recent LTS version.
Joonas
Joonas am 12 Jun. 2025
I have the same issue with Ubuntu 24.04 LTS.
Michal
Michal am 12 Jun. 2025
Bearbeitet: Michal am 12 Jun. 2025
@Joonas Yes problem still persist with the latest version of MATLABconnector on Ubuntu 24.04. I askalate the problem on TMW support, but stll no solution, workaround or fix.
I also got this error today
Warning: program compiled against libxml 213 using older 209
Michal
Michal am 22 Okt. 2025
I did apt update, apt upgrade and then the reinstall of MathWorksServiceHost which seems to solve my problem even though I got some messages
Gtk-Message: 08:19:10.739: Failed to load module "gail"
Gtk-Message: 08:19:10.739: Failed to load module "atk-bridge"
Thanks for the help

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Swastik Sarkar
Swastik Sarkar am 16 Jun. 2025

0 Stimmen

It has been observed that this warning typically appears only during the initial launch of MATLAB, when the MathWorks Service Host is installing itself for the first time. After this initial setup, the warning does not reoccur under normal circumstances.
However, the warning may reappear if the MathWorks Service Host has been uninstalled, as the system will attempt to reinstall it upon the next startup.
A clean installation of MATLAB Connector may help resolve this issue. Further guidance is available in the following MATLAB Answer:
I hope this helps.

Kategorien

Mehr zu Startup and Shutdown finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 20 Feb. 2025

Kommentiert:

am 3 Nov. 2025

Community Treasure Hunt

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

Start Hunting!

Translated by