Issues

Matlab interface fails with 'cannot find file specified' error


Issues ID    KI8008753
Status:    Published
Published date:    12/20/2017
Updated:    03/07/2018
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\easy5x.py", line 2423, in <module>
    os._exit(easy5_cc(osenv, argv))
  File "C:\MSC.Software\Easy5\2013\easy5x\engine\easy5_cc.py", line 86, in easy5_cc
    status = call(tempArgs, stderr=STDOUT)
  File "C:\MSC.Software\Easy5\2013\python\lib\subprocess.py", line 444, in call
    return Popen(*popenargs, **kwargs).wait()
  File "C:\MSC.Software\Easy5\2013\python\lib\subprocess.py", line 595, in __init__
    errread, errwrite)
  File "C:\MSC.Software\Easy5\2013\python\lib\subprocess.py", line 804, in _execute_child
    startupinfo)
WindowsError: [Error 2] The system cannot find the file specified
 
Failed compilation of file ez_env_set.c.

 

Description

Problem:
 
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.
 
Workaround:
 
There is no workaround for this issue.
 
Solution:
 
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:
KB8022479: https://simcompanion.mscsoftware.com/infocenter/index?page=content&id=KB8022479
 

 


Rate this Page
Rate the quality of this article from 5 (high) to 1 (low):
1
2
3
4
5
 
How can we improve this?