Matlab on Xfce linux failed to load gtk module

12 次查看(过去 30 天)
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.

回答(1 个)

Bhanu Prakash
Bhanu Prakash 2024-1-18
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!

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

产品


版本

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by