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

31 次查看(过去 30 天)
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.

采纳的回答

MathWorks Support Team
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 个评论
Greg
Greg 2020-9-23
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 2020-9-23
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

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息

标签

尚未输入任何标签。

产品

Community Treasure Hunt

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

Start Hunting!

Translated by