What dependencies are needed to install MATLAB on "minimal" or "core" Linux installations?

319 views (last 30 days)
I have a "minimal" or "core" installation of Linux and I'd like to install MATLAB on it. What additional dependencies are needed to do so?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 9 Apr 2024 at 0:00
Edited: MathWorks Support Team on 9 Apr 2024 at 19:20
MATLAB and Simulink are validated on standard installations of the distributions listed on our system requirements page. “Minimal” or “core” installations of Linux may lack the necessary software packages required to install and run MATLAB and Simulink. You can likely add required software packages to a minimal Linux installation, but technical support will be limited. 
You can find the dependencies required for MATLAB R2019b and newer for Ubuntu by viewing the base_dependencies.txt for the matlab-deps docker image. MATLAB R2021b and newer additionally have this text file for Ubi8. This can be found on the following page:
Under "files" on the left side of the page, select the desired release, and then operating system. Then, click on base_dependencies.txt to view the dependencies needed. 
You can install all of the library dependencies using a single command. For example, to install all of the required libraries for R2024a on Ubuntu 22.04, execute this command:
sudo apt-get install ca-certificates libasound2 libc6 libcairo-gobject2 libcairo2 libcap2 libcups2 libdrm2 libfontconfig1 libgbm1 libgdk-pixbuf-2.0-0 libgl1 libglib2.0-0 libgstreamer-plugins-base1.0-0 libgstreamer1.0-0 libgtk-3-0 libice6 libltdl7 libnspr4 libnss3 libpam0g libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0 libsndfile1 libudev1 libuuid1 libwayland-client0 libxcomposite1 libxcursor1 libxdamage1 libxfixes3 libxft2 libxinerama1 libxrandr2 libxt6 libxtst6 libxxf86vm1 locales locales-all make net-tools procps sudo unzip zlib1g
The libraries listed in the above command were retrieved from this page:
matlab-deps/r2024a/ubuntu22.04/base-dependencies.txt

More Answers (0)

Tags

No tags entered yet.

Community Treasure Hunt

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

Start Hunting!