Make mex compiler of matlab working on mint?

Posted by Erogol on Ask Ubuntu See other posts from Ask Ubuntu or by Erogol
Published on 2012-12-02T16:18:48Z Indexed on 2012/12/02 17:21 UTC
Read the original article Hit count: 763

Filed under:
|
|

Mex compiler of matlab does not work with following error

Warning: You are using gcc version "4.7.2-2ubuntu1)".  The version
         currently supported with MEX is "4.4.6".
         For a list of currently supported compilers see: 
         http://www.mathworks.com/support/compilers/current_release/

/home/krm/matlab/bin/mex: 1: eval: g++: not found

    mex: compile of ' "fv_cache/fv_cache.cc"' failed.

it is obvious that I need preceding version of gcc but this specific version is not included in software manager of mint. I installed gcc-4.4 but it does not recognized by Matlab. I also removed latest version from my computer and set gcc as a environment variable points to gcc-4.4 but again does not work.

Is there any other way around to solve that issue? Maybe a interface or something.

© Ask Ubuntu or respective owner

Related posts about compiling

Related posts about gcc