Borrar filtros
Borrar filtros

Simulink crash in Ubuntu 20.04

59 visualizaciones (últimos 30 días)
vishwas jain
vishwas jain el 19 de Oct. de 2021
Respondida: Love Sehra el 9 de Dic. de 2021
I have Ubuntu 20.04 and installed MATLAB 2021b. When I run (does not matter whether or not as root) simulink, it crashes with the error "Inconsistency detected by ld.so: ../elf/dl-tls.c: 517: _dl_allocate_tls_init: Assertion `listp != NULL' failed!".
Here it says, the problem is with glibc version and it is suggested that version should be changed. But changing the glibc version may create problem within the OS.
Are there any other solutions?
System Info:
Kernel: 5.11.0-37-generic
gcc: 9.3.0
glibc: 2.31

Respuestas (3)

Anton Hristozov
Anton Hristozov el 3 de Dic. de 2021
Editada: Anton Hristozov el 3 de Dic. de 2021
This is very disappointing to see in ofiicially supported Ubuntu 20.04 distribution.
There is no other application that needs to downgrade something as used as libc lib.

Yongjian Feng
Yongjian Feng el 28 de Oct. de 2021
Have you tried this approach:
Installed a local copy of glibc of the recommended version. A local copy is not used by your OS, so you don't need to worry.
Now from a terminal, change your env var LD_LIBRARAY_PATH by inserting the local path as the FIRST. Start matlab from this terminal. This will force matlab to use the local glibc.
  2 comentarios
Chunyu Xiao
Chunyu Xiao el 8 de Nov. de 2021
Hello, I have the same issue on Manjaro Linux (glibc version 2.33). Could you please give more details about the command to run MATLAB in terminal? Do I run MATLAB with export LD_LIBRARAY_PATH=[localpath]:${ LD_LIBRARAY_PATH} matlab ?
Yongjian Feng
Yongjian Feng el 8 de Nov. de 2021
No. Two steps here.
  1. Set LD_LIBRARY_PATH. You need to put your local glibc folder as the first one to force matlab to use it. In a terminal: export LD_LIBRARY_PATH=your_local_glibc_path:$LD_LIBRARY_PATH
  2. Then from the same terminal, go to the installation folder of your matlab. Most likely is /usr/local/Matlab<release>. Then type bin/matlab&

Iniciar sesión para comentar.


Love Sehra
Love Sehra el 9 de Dic. de 2021
These are the error messages when I open simulink on Matlab R2021a on my Ubuntu 20.04. I recently installed both the OS and MATLAB.
error1error2
SlProxy service unavailable.
and
Error loading /usr/local/MATLAB/R2021a/bin/glnxa64/builtins/sl_main/mwlibmwsimulink_builtinimpl.so. /usr/local/MATLAB/R2021a/bin/glnxa64/builtins/sl_main/../../../../bin/glnxa64/libmwsl_prm_engine.so: undefined symbol: _Z27FcnCheckAndConvParamToFixPtPK7SLBlockP21_slDataTypeAccess_tagPKvPKclibiPv: Resource temporarily unavailable: Resource temporarily unavailable
I have searched for them online, but couldn't find anything helpful.
Additionally, when I dismiss these messages and try to create a new blank model, I get another error:
error3
Error loading /usr/local/MATLAB/R2021a/bin/glnxa64/builtins/sl_main/mwlibmwsimulink_builtinimpl.so. /usr/local/MATLAB/R2021a/bin/glnxa64/builtins/sl_main/../../../../bin/glnxa64/libmwsl_prm_engine.so: undefined symbol: _Z27FcnCheckAndConvParamToFixPtPK7SLBlockP21_slDataTypeAccess_tagPKvPKclibiPv: No such file or directory: No such file or directory
I solved it installing an update from the notifications icon of the Matlab home page. Restarting Matlab, now Simulink works successfully.

Categorías

Más información sobre Introduction to Installation and Licensing en Help Center y File Exchange.

Productos


Versión

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by