Unzip the downloaded installer files and navigate to the unzipped folder. For example, use these commands to unzip the installer for release R20XXy to a folder of the same name, and then navigate to the folder.
sudo is required only when you install products to a folder where you do not have write permissions, which might include the default installation folder. The xhost commands are required only when you install products as the root user with sudo. These commands temporarily give the root user access to the graphical display required to run the installer.
To access additional resources for which you are licensed, go to matlab.mathworks.com and sign in to your MathWorks Account. Resources include MATLAB Online (access MATLAB from a web browser) and online training (self-paced interactive courses).
If you have trouble installing MATLAB products, review the following common issues that might occur during the installation process. If you continue to have problems, contact support. Provide any error messages, log files, or screenshots related to the problem in your help request.
If you lose your internet connection while installing, try rerunning the installer. If you continue to have connection issues, see Why do I get a connection error when installing or activating MATLAB or other MathWorks products?
During installation, the MathWorks installer temporarily stores files in the tmp folder of your platform. If you get an error that your tmp folder is not large enough to complete the installation, you can change where the installer stores these files. See How can I change the temp directory the MATLAB installer uses?
Use the MATLAB function compiler.runtime.download to download the MATLAB Runtime installer matching the version and update level of MATLAB from where the command is executed. If the installer has already been downloaded to the machine, it returns the path to the MATLAB Runtime installer. If the machine is offline, it returns a URL to the MATLAB Runtime installer. This option is best for developers who want to create application installers that contain MATLAB Runtime.
You can have multiple versions of MATLAB Runtime on your computer, but only one installation for any particular version. If you have an existing installation of the same version, the MATLAB Runtime installer does not display the Folder Selection dialog box because it overwrites the existing installation in the same folder.
On Linux and macOS platforms, after copying files to your disk, the MATLAB Runtime installer displays the Product Configuration Notes dialog box. This dialog box contains information necessary for setting your path environment variables. Copy the path information from this dialog box, save it to a text file, and then click Next.
If you have many installations to perform, you can specify installation arguments as command-line arguments or in an installer control file to save time and prevent errors. When you specify installation arguments, the MATLAB Runtime installer runs as a background task and does not display any dialog boxes.
On Linux, the installer displays information necessary for setting your environment variables in the Product Configuration Notes dialog box. If you use the installer noninteractively, you must locate your MATLAB Runtime installation directory in order to set the library path after installation. For more information, see Set MATLAB Runtime Path for Deployment.
Run the MATLAB Runtime installer, specifying the -agreeToLicense yes option on the command line. If you do not include -agreeToLicense yes as the first option, the installer will not install MATLAB Runtime.
When run noninteractively, the installer uses the default values unless you specify otherwise. Like the MATLAB installer, the MATLAB Runtime installer accepts a number of options that modify the default installation properties.
Create an installer control text file that contains your command-line options and values. Omit the dash before each option and put each option and value pair on a separate line. For example: agreeToLicense=yesdestinationFolder=/usr/MATLAB/MATLAB_RuntimeoutputFile=myapp_log.txt
The MATLAB installer archive includes an example installer control file called installer_input.txt, which contains all of the options available for a full MATLAB installation. However, the MATLAB Runtime installer only accepts the options listed in this section.
MCRInstaller supports the installation of multiple versions of MATLAB Runtime on a target machine. This capability allows applications compiled with different versions of MATLAB Runtime to execute side by side on the same machine.
If you do not want multiple MATLAB Runtime versions on the target machine, you can remove the unwanted ones. On Windows, run Add or Remove Programs from the Control Panel to remove a specific version. On Linux, manually delete the unwanted MATLAB Runtime directories. You can remove unwanted versions before or after installation of a more recent version of MATLAB Runtime because versions can be installed or removed in any order.
To test your deployed component on your development machine, you do not need an installation of MATLAB Runtime. The MATLAB installation that you use to compile the component can act as a MATLAB Runtime replacement.
To run deployed MATLAB code against MATLAB Runtime rather than MATLAB, ensure that your library path lists the MATLAB Runtime directories before any MATLAB directories. For information on setting environment variables, see Set MATLAB Runtime Path for Deployment.
A MATLAB app installer file, .mlappinstall, is an archive file for sharing an app you created using MATLAB. A single app installer file contains everything necessary to install and run an app: the source code, supporting data, information (such as product dependencies), and the app icon.
An .mlappinstall file is a compressed package that conforms to the Open Packaging Conventions (OPC) interoperability standard. You can search for and install .mlappinstall files using your operating system file browser. When you select an .mlappinstall file in Windows Explorer or Quick Look (macOS), the browser displays properties for the file, such as Authors and Release. Use these properties to search for .mlappinstall files. Use the Tags property to add custom searchable text to the file.
Hi @paulage,
Have you tried using the version of CytoMAP that works with a full installation of Matlab rather than the stand-alone installer? Now that you have a full version of Matlab.
It is not a solution, but it may be a work-around.
This I think is due to the fact that if I can't run the installer in sudo mode (it simply does not run the installer, or better, it does not appear the wizard and the terminal continues to wait the end of the command). What are the pros and cons to create a differt path to the installation?
I have wrote a program HelloApp with Matlab and packaged it as .NET Assembly using deploytool as described here. As a result I have got helloapp.dll library, which I included into my Visual Studio 2015 as a reference, so I can run Matlab methods directly from C#. To run the code without Matlab installed, the end user needs Matlab Runtime (MCR) installed at least.
Now I want to create an installer for my C# program. I have came across Visual Studio 2015 Installer Projects which provides some tools to create program setup wizard. The problem is, I don't know how to include download and setup of MCR package as a step in installation process to ensure the user has all the required prerequisites in order for program to run.
Yes, you'll need to use the "download without installing" option in the installer app to download all the files to a Mac, then repackage it for deployment with the key, license, and edited installer_input.txt file (this file is in the downloaded files from Mathworks). I do this and make it a Self Service policy. These are the main steps I take when I'm packaging any new version.
I use the Packages app to repackage the Matlab software. If you use something else your workflow will be a little different, but the end result should be the same. I can give more detail about how I do it in Packages though if that helps. The main thing is to put the license file in the right file path and to place those downloaded files somewhere on the Mac and then trigger the install from that directory. I use Packages to do this because it creates a temporary directory for those files and I don't have to worry about it.
More details about doing this in Packages,
In the Payload tab of Packages, I add the folders where the app will be installed. The license.dat file needs to be in /Applications/MATLAB_R2020.app/licenses/, so I create that location and place the file there. Then, I put all those files that were downloaded (that are currently in the downloads folder) and drag them into the Additional Resources section of the Scripts tab in the Packages. Then I use a postflight script to set the directory and install matlab using those files (those commands are below, I can't share the whole script because of other customizations we do).
@winterboer Not for the file names or the postflight, you should be able to keep it as is. What error are you seeing? The only things you'd need to modify with this workflow would be the contents of the installer_input.txt file and the license file unless you have other modifications to make.
@jchen1225 Yes, it should work as is for the workflow using the Packages app or as long as the postflight script is in the same directory as the installer_input.txt file and the other Matlab installer files.
Jamf's purpose is to simplify work by helping organizations manage and secure an Apple experience that end users love and organizations trust. Jamf is the only company in the world that provides a complete management and security solution for an Apple-first environment that is enterprise secure, consumer simple and protects personal privacy. Learn about Jamf.
c80f0f1006