LoginSignup
1
0

More than 3 years have passed since last update.

matlab R2020a (academic license) を ubuntu18.04にインストール

Last updated at Posted at 2020-05-05

インストール

アカウントを作ってダウンロード。
sudo sh installでインストールGUIが出るので
推奨されたパッケージをインストールしようとすると、以下のようなMissing File esd.mathworks.comというメッセージが表示されてしまった。

エラーメッセージ

MATLAB ANSWERSのページに書いてあった「simulinkとmatlabだけインストール」するというヒントに従えばインストールできた。

launcherから起動できるようにする。

-desktopのオプションを付けるのがミソ。
https://jp.mathworks.com/matlabcentral/answers/472134-gtk-message-10-32-31-466-failed-to-load-module-canberra-gtk-module
のエラーを解決するために、Execのところでenvコマンドで環境変数を設定しています。

/usr/share/applications/matlab.desktop
[Desktop Entry]
Name=matlab
Comment=This is matlab
Exec=env GTK_PATH=/usr/lib/x86_64-linux-gnu/gtk-2.0 LIBOVERLAY_SCROLLBAR=0 GIO_EXTRA_MODULES=/usr/lib/x86_64-linux-gnu/gio/modules matlab -desktop >>/tmp/matlab_log.txt & 2>&1 
Icon=/usr/local/MATLAB/R2020a/bin/glnxa64/cef_resources/matlab_icon.png
Path=
Terminal=false
Type=Application
Categories=Development;
StartupNotify=false
Version=R2020a
1
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0