Installing Matlab in Slackware Linux

by Luan

Posted on 17 May 2021, 20:58

In this article I present the procedure to get Matlab working in Slackware Linux

Installing Matlab

The installation is default for Linux systems. A shown bellow:


Register and Download the desired version of Matlab

Install disk

Mount the ISO image of installation disk:

mkdir matlab
mount Matlab99R2020b_Lin64.iso matlab

Now the installation procedure can start. Just type the following in terminal:

cd matlab

Installation will take some time, and will ask for your registration key and target directory (Make sure you are running as root or your user have privileges to write in target directory).


Some of Matlab modules require libpcre2. This library can be downloaded and installed from SlackBuilds .

Binary Libraries

Slackware don’t support few needed libraries that some of Matlab modules need. Adam Lukomski show the procedure to workaround this problem in two posts: and


To make simple I packed only the single binary here: .
Download the file, extract and copy to Matlab folder:

tar -zxvf
cp <matlab dir>/bin/glnxa64/
cd <matlab dir>/bin/glnxa64/
ln -s


Procedure is similar for libselinux: .
Download the file, extract and copy to Matlab folder:

tar -zxvf
cp <matlab dir>/bin/glnxa64/

Now Matlab 2020b will run without problems

Desktop Shortcut

To create a executable shortcut, create a file called Matlab.desktop on desktop folder, with the following content:

#!/usr/bin/env xdg-open
[Desktop Entry]
Name=MATLAB R2020b
Icon=<matlab dir>/bin/glnxa64/cef_resources/matlab_icon.png
Exec=<matlab dir>/bin/glnxa64/MATLAB -desktop

Then, make the file executable:

chmod +x Matlab.desktop

Now Matlab is ready to run and with a desktop Icon

Category ,


Enter your comment below. Fields marked * are required. You must preview your comment before submitting it.

Name *

Email *


Message *

Textile help




I am computer engineer and MSc in Informatics graduated in Federal University of EspĂ­rito Santo. I am a programming and electronics enthusiast and I made this site to share my ideas and experiments in programming, electronics and DIY. I hope you enjoy it.

Donate: monero