

This is a 64-bit system running gcc-multilib. The system has recently been upgraded MATLAB R2012a. Therefore, don’t worry if you are not in the environment mentioned in the article above.I am experiencing some package compiling errors on my Debian system with dynare-matlab. But, in fact, even if you are in OS X 10.9 with Xcode 5, the problem is aroused for the same reason and the solution should be the same. You may notice that in the support article above, it is said that the solution is only for Xcode 4.2~2.4 with OS X 10.6~10.8. Applying the patch attached to this solution will instruct MATLAB to use the compiler supplied with Xcode 4.2 or later.Īnd you should find the patch and its installation instructions here: However, Xcode 4.2 and later include a similar compiler (GCC 4.2 front-end to LLVM) that MATLAB can be instructed to use instead. This compiler was distributed with Xcode 4.0 and 4.1, but is no longer supplied as of Xcode 4.2. This is happening because MATLAB is expecting GCC 4.2 to be present. Applications/MATLAB_R2011b.app/bin/mex: line 305: gcc-4.2: command not found m fails, please check README about detailed instructions. app / bin / mex : line 1326 : gcc - 4.2 : command not found mex : compile of ' "libsvmread.c"' failed. app / bin / mex : line 305 : gcc - 4.2 : command not found / Applications / MATLAB_R2012b. Well, in fact, after typing make into the command line, I met the following error message: / Applications / MATLAB_R2012b. sh (/ n ) ? yĪfter all this, try Step 2 again. sh : Template Options file for building gcc MEX - files 0 : Exit with no changes Enter the number of the compiler ( 0 - 1 ): 1 %Notice, you should choose one according to your wish Depending on the environment, things like following will be prompted to the screen: The options files available for mex are : 1 : / Applications / MATLAB_R2012b. This one let you to choose a proper compiler. If anything goes wrong, try the following command first: mex - setup Unfortunately, I went into trouble during the process. You will find some files with the suffix. If everything goes right, just wait for a few seconds, it will be done and nothing will be displayed. For me, it will be like: cd ( matlabroot ) cd toolbox / libsvm / matlab You could unzip the package to any directory you like, but I’d prefer to unzip it to (matlabroot)/toolbox/libsvm.Īfter preparation, launch matlab and go to the directory you unzipped the files to. There is no versions specially for matlab, so, just download the package. Of course, you have to download libsvm from its official site.

Therefore, I’d like to make a more comprehensive version of tutorial. However, most of them did not mention some problems that could be met during the installation. Tutorials on installation of libsvm for matlab on mac could be fetched easily on the internet. Installation of libsvm for Matlab R2012b on OS X 10.9 with Xcode 5.0
