Unable to install R2020 in Ubuntu

6 次查看(过去 30 天)
I am trying to install Matlab on a new Ubuntu machine.
I followed the instructions and download the file matlab_R2021a_glnxa64.zip.
sudo unzip -K -X matlab_R2021a_glnxa64.zip -d matlab_installer
cd matlab_installer2
sudo su
xhost +SI:localuser:root
sudo ./install
This resulted in the error below:
terminate called after throwing an instance of 'std::runtime_error'
what(): Unable to launch the MATLABWindow application. The exit code was: 127
Aborted
Based on the information I found on the internet, I removed files libfreetype.so.6.16.0 and libfreetype.so.6 from /bin/glnxa64 folder and then sudo ./install.
This time the program ran and matlab GUI opened. But the problem is that I can only enter my email address in the appropriate box. I can not enter the password (the cursor does not appear in the box and no characters are shown as I type the password). There is a problem with entering the password into the GUI box.
Thanks,
Vahid Hesany
  4 个评论
Morning Star
Morning Star 2023-6-19
That was just a typo. I unzipped to a new folder each time I tried a new debugging approach
Morning Star
Morning Star 2023-6-19
Parth, the Matlab web site allows me to download different versions for year 2020 and 2021. I first download version 2020a and that didn’t work. Then I tried 2021, and the same problem persisted.
I bought a Matlab home license in July 2020.
The problem seems to be related to libfreetype.so.* files in the bin directory. If I don’t remove them, sudo ./install fails and Matlab GUI does not open. If I remove these files, then the GUI opens and I can even enter my email address in the box, but on the next page It does not allow me to type in the password in the password box. The fonts also appear slightly distorted in the GUI.

请先登录,再进行评论。

回答(1 个)

Parth Saraf
Parth Saraf 2023-6-19
Hello,
You can refer to this link:
It might be helpful!!
  2 个评论
Morning Star
Morning Star 2023-6-19
Parth,
I tried all of the solution in the link you provided without success.
Morning Star
Morning Star 2023-6-19
I alos tried the solution in https://gist.github.com/pgrepds/7c9a7e29a8b649369951e2002a85a3d0?permalink_comment_id=4291072

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息

产品


版本

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by