Unable to install R2020 in Ubuntu

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 Comments

You mentioned R2020 in the title but while running the command, you are specifying R2021a. Please verify the version which you want to download.
Another odd thing is that you cd to a different folder than you unzip.
That was just a typo. I unzipped to a new folder each time I tried a new debugging approach
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.

Sign in to comment.

Answers (1)

Parth Saraf
Parth Saraf on 19 Jun 2023
Hello,
You can refer to this link:
It might be helpful!!

2 Comments

Parth,
I tried all of the solution in the link you provided without success.
I alos tried the solution in https://gist.github.com/pgrepds/7c9a7e29a8b649369951e2002a85a3d0?permalink_comment_id=4291072

Sign in to comment.

Categories

Products

Release

R2020a

Asked:

on 18 Jun 2023

Commented:

on 19 Jun 2023

Community Treasure Hunt

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

Start Hunting!