Matlab interface fails with 'cannot find file specified' error

Issues ID    KI8008753
Status:    Published
Published date:    12/20/2017
Updated:    01/06/2020
Reported In:   Easy5 - EASY5
Created with Version:   EASY5 (2015 (9.1))

Known Issue

When exporting the EASY5 model for MATLAB, I get an error and the compilation fails.
This is what appears in the xi_demo.xmi_build.log file:
CL /c /MD /O2 ez_env_set.c
Traceback (most recent call last):
  File "C:\MSC.Software\Easy5\2013\easy5x\bin\", line 2423, in <module>
    os._exit(easy5_cc(osenv, argv))
  File "C:\MSC.Software\Easy5\2013\easy5x\engine\", line 86, in easy5_cc
    status = call(tempArgs, stderr=STDOUT)
  File "C:\MSC.Software\Easy5\2013\python\lib\", line 444, in call
    return Popen(*popenargs, **kwargs).wait()
  File "C:\MSC.Software\Easy5\2013\python\lib\", line 595, in __init__
    errread, errwrite)
  File "C:\MSC.Software\Easy5\2013\python\lib\", line 804, in _execute_child
WindowsError: [Error 2] The system cannot find the file specified
Failed compilation of file ez_env_set.c.



The cause is that EASY5 cannot find the C compiler. This could be because there is no C compiler installed on the machine, or the path to the C compiler is not in the Windows Path. The S-Function interface to MATLAB that EASY5 uses is compiled using a C compiler. Therefore, an installed C compiler is a requirement in order to use this method.
There is no workaround for this issue.
Install a compatible C compiler and make sure that the path to it is in your Windows PATH within the EASY5 environment.
For a list of compatible C compilers on Windows 64-bit, see this KB article: