Can't install matlab

hi, I need to install matlab for my university.
When i try to install it from pamac it gets stuck on gcc8 conf and the same happens when I try to use yay.

I’m trying to follow these steps but I have an error :slight_smile:
https://wiki.archlinux.org/title/MATLAB#Installing_from_the_MATLAB_installation_software

error:

bsdtar: could not chdir to 'matlab'

And if I try to start the installation script with

./install                                                    ✔ 
/home/andrea/matlab/bin/glnxa64/MathWorksProductInstaller: error while loading shared libraries: libcrypt.so.1: cannot open shared object file: No such file or directory

Based on the comments in the AUR page, you also need the libxcrypt-compat package.


On another topic, the AUR maintainer seeks someone to take over.

Anyone wants to take over the package? I don’t use Arch anymore. Please email me so we can discuss; as I want to hand over this package to someone who knows what they are doing.
https://aur.archlinux.org/packages/matlab#comment-854427

1 Like

Thank you very much, I just had to install the package you told me.

Every time I think the world is becoming more “open” towards open source (yes, pun intended), it’s stuff like this, enforced and entrenched by institutions, that crushes my optimism. :cry:

I found octave that is open source.
I’d like to try that one too.

Everytime I had to install matlab (even in ubuntu) I always had some issues, it’s very frustrating

I have an error after trying to create the shortcut:

[Desktop Entry]
Version=R2022a
Type=Application
Terminal=false    
MimeType=text/x-matlab
Exec=/home/andrea/mat/bin/matlab -desktop
Name=MATLAB
Icon=matlab
Categories=Development;Math;Science
Comment=Scientific computing environment
StartupNotify=true


This is the .desktop file I wrote but I have this error :



Could not find the program at the directory that I choose

Is the matlab file executable? (Does it have “exec” permissions?)


Your .desktop file should read:

Version=1.0

Don’t put the application’s version number in there. It’s a reference to the XDG / FreeDesktop standards version.

1 Like

Yes I used chmod +x and i modified the version.
But I have the same error.

Does matlab launch if invoked directly from the terminal?

1 Like

yes !!!

Can you paste your revised .desktop file contents again?

[Desktop Entry]
Version=1.0
Type=Application
Terminal=false    
MimeType=text/x-matlab
Exec=/home/andrea/mat/bin/matlab -desktop
Name=MATLAB
Icon=matlab
Categories=Development;Math;Science
Comment=Scientific computing environment
StartupNotify=true





OK man it works. I had to log out.

And how did you invoke it in the terminal?

Was it from your $HOME folder, like this?

/home/andrea/mat/bin/matlab -desktop

…or like this?

~/mat/bin/matlab -desktop

Or did you cd into the folder and then execute it like this?

cd mat/bin/
./matlab -desktop

Do all of the above methods work?

1 Like

Thank you for all your help in both discussions :slight_smile:

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.