Unable to install R2020 in Ubuntu

7 views (last 30 days)
Morning Star
Morning Star on 18 Jun 2023
Commented: Morning Star on 19 Jun 2023
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
Morning Star
Morning Star on 19 Jun 2023
That was just a typo. I unzipped to a new folder each time I tried a new debugging approach
Morning Star
Morning Star on 19 Jun 2023
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
Morning Star
Morning Star on 19 Jun 2023
Parth,
I tried all of the solution in the link you provided without success.
Morning Star
Morning Star on 19 Jun 2023
I alos tried the solution in https://gist.github.com/pgrepds/7c9a7e29a8b649369951e2002a85a3d0?permalink_comment_id=4291072

Sign in to comment.

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Products


Release

R2020a

Community Treasure Hunt

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

Start Hunting!