Filter löschen
Filter löschen

Matlab on Xfce linux failed to load gtk module

6 Ansichten (letzte 30 Tage)
Tanaphon Sriyim
Tanaphon Sriyim am 6 Jan. 2021
Beantwortet: Bhanu Prakash am 18 Jan. 2024
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.

Antworten (1)

Bhanu Prakash
Bhanu Prakash am 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!

Kategorien

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

Produkte


Version

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by