필터 지우기
필터 지우기

Matlab Compiler Problem. No version but currently supported is 4.3.4

조회 수: 1 (최근 30일)
dyanpis
dyanpis 2011년 7월 23일
Hello.
I am having major issues with my MEX compiler. It seems Matlab cannot find it and i do not know how to tell matlab where to find it. Matlab mex compiler fails with the message below:
/usr/local/MATLAB/R2011a/bin/mex: line 305: gcc: command not found
Warning: You are using gcc version "". The version currently supported with MEX is "4.3.4". For a list of currently supported compilers see: http://www.mathworks.com/support/compilers/current_release/
/usr/local/MATLAB/R2011a/bin/mex: line 1041: gcc: command not found
mex: compile of ' "main.c"' failed.
Thanks.
Ayon.

답변 (1개)

Walter Roberson
Walter Roberson 2011년 7월 23일
oldpath = getenv('PATH');
setenv('PATH', [oldpath ':/directory/that/gcc/is/in']);
  댓글 수: 1
dyanpis
dyanpis 2011년 8월 10일
Does not solve the problem! Thanks for trying. Was able to return the previous version of gcc by simply using "add/remove software" and put back the removed compilers but i still have the warning:
You are using gcc version "4.1.2". The version
currently supported with MEX is "4.3.4".
For a list of currently supported compilers see:
http://www.mathworks.com/support/compilers/current_release/
This seems to be a simple problem, i have the 4.3.4 compiler installed just to help matlab see it!
Thanks!

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

카테고리

Help CenterFile Exchange에서 MATLAB Compiler에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by