How do I create symbolic links automatically using the silent installer?

19 views (last 30 days)
I will be doing a silent installation of MATLAB for multiple machines, and I would like to know how to create symbolic links automatically using the installer_input.txt file.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 21 Dec 2011
Currently, it is not possible to create symbolic links automatically using the installer_input.txt file. The only way to create symbolic links is to create the link manually.
In order to manually create the symbolic link, browse to the /usr/local/bin/ folder and run the following command:
ln -s $MATLAB/bin/matlab matlab
where $MATLAB is the MATLAB installation directory.
  2 Comments
Greg
Greg on 23 Sep 2020
Is there a complete list of symbolic links, and dependency criteria? My prior interactive installation gave me the following symbolic links:
  • deploytool --> $MATLAB/bin/deploytool
  • matlab --> $MATLAB/bin/matlab
  • mbuild --> $MATLAB/bin/mbuild
  • mcc --> $MATLAB/bin/mcc
  • mex --> $MATLAB/bin/mex
Obviously I'll just update all of those since my installations are consistent, but others may have different options.
Greg
Greg on 23 Sep 2020
Also, the above command fails if the link already exists for a previous release installation. Include a --force after -s to have ln remove the existing link before creating the new one.
ln -s --force $MATLAB/bin/matlab /usr/local/bin/matlab

Sign in to comment.

More Answers (0)

Categories

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

Tags

No tags entered yet.

Products

Community Treasure Hunt

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

Start Hunting!