When I use mex setup there is the Problem

조회 수: 3 (최근 30일)
Zeen Song
Zeen Song 2018년 11월 30일
댓글: Zeen Song 2018년 12월 5일
My Operating System is OSX 10.14, and I already install the newest Xcode
the Problem is:
'sh /var/folders/_j/by019xjs0gdcztvndfq5wsgr0000gn/T//mex_12850823584080_3626' is an invalid option
  댓글 수: 2
Geoff Hayes
Geoff Hayes 2018년 11월 30일
Zeen - please describe what you are doing when you see the above message. Are you running some code? If so, what? Please provide as much detail as possible.
Zeen Song
Zeen Song 2018년 11월 30일
I was trying to compile a C file, which is a S-function for a simulink Model.

댓글을 달려면 로그인하십시오.

답변 (1개)

Ran Chen
Ran Chen 2018년 12월 4일
Hello,
I suggest checking the output of :
>>mex -setup -v
You may find something useful from it.
In addition, it might be the issue related path. Please check whether the Matlab is using the same shell with your current shell.
Please type:
1. echo $0
2. echo $SHELL
first in the regular terminal, then inside MATLAB with the '!' command
If you are using bash,
then do the following:
$> echo $MATLAB_SHELL
output
$> which bash
path_to_bash
$> export MATLAB_SHELL=path_to_bash
then start MATLAB from the same terminal.
If the issue still exists, it will be helpful to create a technical support case here: http://www.mathworks.com/support/servicerequests/create.html, copy and paste the verbose output and what you have tried then engineers will be able to reach out to you with following steps.
  댓글 수: 1
Zeen Song
Zeen Song 2018년 12월 5일
Thanks for your advices, but it doesn't seems to work.
I already send a request for technical support, and hope they can solve my problem.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Write C Functions Callable from MATLAB (MEX Files)에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by