Error using compiler.r​untime.dow​nload Access is denied.

11 views (last 30 days)
Hi,
I am currently using R2020a matlab and I would like to download a complier.
I tried mcrinstaller and I don't seem to have the complier despite I have downloaded in my C:/MATLAB/Program files/MATLAB Runtime.
Then I tried compiler.runtime.download and it returned with Error using compiler.runtime.download. Access is denied.
Can anyone please help me with this problem?

Answers (1)

Walter Roberson
Walter Roberson on 2 Jan 2022
Edited: Walter Roberson on 2 Jan 2022
MCR is not a compiler. It is a Runtime environment (set of libraries called by the code) for code that has been compiled using MATLAB Compiler, or MATLAB Compiler SDK.
There are different possible meanings of "Compiler" in your request.
There is a product named MATLAB Compiler, which is designed to take MATLAB code and create a stand-alone executable (that does not need MATLAB) to execute the MATLAB code; this is a closely related product named MATLAB Compiler SDK, which is designed to take MATLAB code and create code that can be called from .NET or Java or as .DLL or similar. MATLAB Compiler SDK requires MATLAB Compiler as a base product. MATLAB Compiler is expensive for commercial use (and is not available for Student or Home licenses, but is available for Academic licenses.)
Alternately, you might be needing a third-party products such as Microsoft Visual Studio, or MinGW, in order to compiler C or C++ or Fortran code. MinGW can be installed using the Add-On Explorer, but you have to get Visual Studios from Microsoft.

Categories

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

Tags

Products


Release

R2020a

Community Treasure Hunt

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

Start Hunting!