Can I use production server to create ctf file and do I need to install matlab compiler sdk along with production server to achieve this?
Show older comments
I wrote a matlab script which contains command 'mcc' and the options to create the ctf in my local machine. The script runs correctly with the ctf created. However, when I deployed the codes on the production server, the command mcc cannot be executed. My local computer has both matlab compiler and matlab compiler sdk installed. It looks like the production server has matlab runtime running, maybe matlab compiler. But definitely no matlab compiler sdk. So should I install matlab compiler sdk on the same server as the production server? After installation, how do I tell the production server where to find the matlab compiler sdk and the command of "mcc"?
Accepted Answer
More Answers (1)
Sanjana
on 8 Oct 2024
0 votes
Hi,
The deployed code runs using MATLAB Runtime on server machine where MATLAB Production server is installed.To compile and generate a CTF file using the mcc command, you would require to MATLAB Compiler and MATLAB Compiler SDK.
The purpose of the MATLAB Production Server is to run MATLAB code on a dedicated server, serving as a backend for other applications. This allows clients to interact with running instances at various endpoints.There by, MATLAB Compiler and MATLAB Compiler SDK is not advisable to be installed in MPS.
If you wish to compile MATLAB Code and deploy the ctf file on the fly outside of your local machine, you can use a MATLAB instance on cloud to generate ctf in a folder montiored by MPS. Both MPS and MATLAB can be installed on the same machine.
Hope this helps!
Categories
Find more on MATLAB Production Server in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!