0
votes

I'm trying to install libsvm-3.17 in my macOS10.9 machine.

I read this tutorial about the common problem:

/Applications/MATLAB_R2011b.app/bin/mex: line 305: llvm-gcc-4.2: command not found

but it didn't solve the issue. I still got these errors:

/Applications/MATLAB_R2012b.app/bin/mex: line 305: llvm-gcc-4.2: command not found

/Applications/MATLAB_R2012b.app/bin/mex: line 1326: llvm-gcc-4.2: command not found

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

If make.m fails, please check README about detailed instructions.

Does anybody know if the problem is the fact that I'm using OSX10.9? In this case, any idea about the solution?

2

2 Answers

1
votes

The easiest way to do this kind of thing is to use one of the popular package managers in OS X, for example I prefer homebrew:

$ brew install libsvm
==> Downloading http://www.csie.ntu.edu.tw/~cjlin/libsvm/oldfiles/libsvm-3.17.tar.gz
######################################################################## 100.0%
==> make CFLAGS=
==> make lib
🍺  /usr/local/Cellar/libsvm/3.17: 8 files, 240K, built in 9 seconds
$