Why do some MATLAB features fail on Ubuntu 23.04 and Debian 12 with exit code 127 in MATLAB R2022b and MATLAB R2023a?

조회 수: 120 (최근 30일)
In Ubuntu 23.04 and Debian 12 there is an incompatibility between MATLAB and some third-party libraries that are shipped with MATLAB. As a result, some MATLAB/Simulink features do not work. Affected features include, but are not limited to:
  • App Designer
  • UIFigure
  • Add-On Explorer and Add-On Manager
  • Simulink start page
  • Simulink Data Inspector
  • Signal Analyzer
  • Curve Fitter
When started, these features fail with the following error:
 
Error using matlab.internal.cef.webwindow
   MATLABWindow application failed to launch. Unable to launch the MATLABWindow application. The exit code was: 127
   Error in matlab.internal.webwindow/createImplementation (line 319)
                   implObj = matlab.internal.cef.webwindow(varargin{:});
   Error in matlab.internal.webwindow (line 163)
               obj.impl = obj.createImplementation(varargin{:});
How can I resolve this issue?

채택된 답변

MathWorks Support Team
MathWorks Support Team 2023년 6월 16일
편집: MathWorks Support Team 2023년 6월 16일
This is a known issue for MATLAB R2022b and MATLAB R2023a on Ubuntu 23.04 and Debian 12.
Please note these platforms do not fulfill the System Requirements for these releases, as shown at the link below. To ensure you receive the best product experience, it is recommended to use MATLAB on one of the qualified platforms listed on these pages.
One of the following workarounds may also help avoid this issue:
  • Run MATLAB on Ubuntu 23.04 or Debian 12 while using the system version of the affected library, instead of the version included with MATLAB, by using the "LD_PRELOAD" environment variable. For example, in a bash shell, start MATLAB with the command:
$ env LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libfreetype.so.6 matlab
OR
  • Remove the specific library from the MATLAB installation directory:
$ sudo mv <matlabroot>/bin/glnxa64/libfreetype.so.6 <matlabroot>/bin/glnxa64/libfreetype.so.6.bak
Note that, in the above, "<matlabroot>" needs to be replaced with the full path to the directory where MATLAB was installed. For additional details about finding the location where MATLAB is installed, please refer to the following documentation page:
https://www.mathworks.com/help/matlab/ref/matlabroot.html

추가 답변 (1개)

Mikhail
Mikhail 2023년 6월 9일
편집: Mikhail 2023년 6월 9일
I wonder why MathWorks ships system libraries with MATLAB? Is there a reason to do this?
If the reason is because some other library bundled with MATLAB is built against these specific library versions shipped with MATLAB and won't work with system libraries, then this suggested workaround will simply break something else (and it will).
MATLAB still requires a bunch of other system libraries and they don't ship them.
So why not stop bundling system libraries with MATLAB at all and instead provide a definitive list of required dependencies (instead of having me to pull them from matlab-deps docker image for ubuntu or installing matlab-support pseudo package on debian)?

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

제품


릴리스

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by