Borrar filtros
Borrar filtros

MATLAB on Fedora 37

185 visualizaciones (últimos 30 días)
johannes neyer
johannes neyer el 20 de Nov. de 2022
Editada: Thomas Kock el 29 de Feb. de 2024
How do I install and use matlab 2022b on fedora?

Respuesta aceptada

johannes neyer
johannes neyer el 20 de Nov. de 2022
Editada: johannes neyer el 26 de Ag. de 2023
I just lost a few hours getting this to work. More detailed information can be found in this Arch Linux wiki entry.
Replace $MATLAB_DIR with the path you installed Matlab to (e.g.: /home/username/matlab). I had to navigate the installer with the keyboard as text input boxes stopped working as soon as I clicked on something with the mouse.
cd ~/Downloads/matlab_R2022b_glnxa64
export LD_PRELOAD=/usr/lib64/libfreetype.so.6
./install
Set scaling for high DPI screens:
TMP=$HOME/tmp $MATLAB_DIR/bin/matlab -r "s = settings;s.matlab.desktop.DisplayScaleFactor.PersonalValue=2;quit" -nodesktop -nosplash
Fix opengl errors:
echo "-Djogl.disable.openglarbcontext=1" >> $MATLAB_DIR/bin/glnxa64/java.opts
Add shortcut:
> cat ~/.local/share/applications/matlab.desktop
[Desktop Entry]
Type=Application
Terminal=false
MimeType=text/x-matlab
Exec=env LD_PRELOAD="/usr/lib64/libstdc++.so.6 /usr/lib64/libfreetype.so.6" LD_LIBRARY_PATH=/usr/lib/dri/ $MATLAB_DIR/bin/matlab -desktop
Name=Matlab
Icon=$MATLAB_DIR/bin/glnxa64/cef_resources/matlab_icon.png
Categories=Development;Math;Science
Comment=Scientific computing environment
StartupNotify=true
  4 comentarios
johannes neyer
johannes neyer el 10 de Mayo de 2023
Editada: johannes neyer el 10 de Mayo de 2023
Yes, probably. Can't test this anymore.
Thomas Kock
Thomas Kock el 29 de Feb. de 2024
Editada: Thomas Kock el 29 de Feb. de 2024
Still works under Fedora 39 and R2023b. Thanks for sharing!

Iniciar sesión para comentar.

Más respuestas (1)

Joshua Rhodes
Joshua Rhodes el 25 de Ag. de 2023
You could also try using distrobox and podman to create an ubuntu container and running Matlab in that. (Ubuntu is one of the guaranteed supported distros.)

Categorías

Más información sobre Startup and Shutdown en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by