Segmentation fault (core dumped) , gcc complier version

hi @mkamran,
In case it helps, I have the same version of ubuntu and managed to install the right compiler following this: PSI: Error on first step on Matlab - #77 by suat

In summary:

  • Update the sources.list file (sudo gedit /etc/apt/sources.list) by pasting the following line:

deb [arch=amd64] Index of /ubuntu focal main universe

note: replace “Index of /ubuntu” by httx://archive.ubuntu.com/ubuntu as in this post: