cjlin1 / libsvm

LIBSVM -- A Library for Support Vector Machines
https://www.csie.ntu.edu.tw/~cjlin/libsvm/
BSD 3-Clause "New" or "Revised" License
4.54k stars 1.64k forks source link

'stdio.h' file not found #104

Open jdaviesthompson opened 7 years ago

jdaviesthompson commented 7 years ago

Tried to run 'make' from the Matlab command line from the libsvm/matlab folder (all folders already added to the matlab path), and I get the below error. 'mex -setup' shows 1 option: (/Applications/MATLAB_R2013a.app/bin/mexopts.sh) - selecting it doesn't change anything. How do I fix this, and if there is something else I need to download, any chance you could point me towards the specific file I should download? I have already tried to type 'xcode-select --install' from a terminal, which did something but hasn't fixed the problem.

Matlab R2013a, Mac osx 10.9.5

xcrun: error: SDK "macosx10.7" cannot be located clang: warning: no such sysroot directory: '-mmacosx-version-min=10.7' libsvmread.c:1:10: fatal error: 'stdio.h' file not found

include

     ^

1 error generated.

mex: compile of ' "libsvmread.c"' failed.

Error: /Applications/MATLAB_R2013a.app/toolbox/matlab/general/mex.m failed (line 206) Unable to complete successfully.

BramVanroy commented 6 years ago

As shown here https://github.com/frida/frida/issues/338 try running xcode-select --install.