Matlab on Xfce linux failed to load gtk module

12 vues (au cours des 30 derniers jours)
Tanaphon Sriyim
Tanaphon Sriyim le 6 Jan 2021
I installed MATLAB2020b on Xfce linux then launch it on terminal.It work fine, but there are four messeages on the termial.I don't know if there are any effect on MATLAB. I've already install both gtk-2 and gtk-3 packages, but it still didn't fix the errors. I'm new on linux, please help. Thank you to anyone who pay attention.

Réponses (1)

Bhanu Prakash
Bhanu Prakash le 18 Jan 2024
Hi Tanaphon,
I understand that you are getting some messages in the terminal when trying to launch the MATLAB R2020b version on Linux.
The messages that appear in the terminal when starting MATLAB are informational and have no effect on MATLAB.
To supress the messages related to ‘canberra-gtk-module’, run the following commands in a Linux terminal:
  • Install the required package for ‘canberra-gtk-module’ using the following command:
apt-get install libcanberra-gtk-module
  • Set the GTK_PATH using the following command:
If your login shell is ‘bash’:
export GTK_PATH=/usr/lib/x86_64-linux-gnu/gtk-2.0
If your linux shell is ‘tcsh’:
setenv GTK_PATH /usr/lib/x86_64-linux-gnu/gtk-2.0
  • Open MATLAB using the below command:
./matlab
For more information on the above-mentioned commands, refer to the following documentation:
Hope this helps!

Catégories

En savoir plus sur Startup and Shutdown dans Help Center et File Exchange

Produits


Version

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by