Matlab Compiler Problem. No version but currently supported is 4.3.4
1 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
回答(1 个)
Walter Roberson
2011-7-23
oldpath = getenv('PATH');
setenv('PATH', [oldpath ':/directory/that/gcc/is/in']);
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!