mbPro
mbPro

Reputation: 757

Install libSVM-3.17 on Mac OS X 10.9 Mavericks

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?

Upvotes: 0

Views: 4478

Answers (2)

Ramakrishnan Kannan
Ramakrishnan Kannan

Reputation: 624

I faced a similar problem. The article in the link fixed it for me. http://chehsunliu.wordpress.com/2013/12/25/install-libsvm-3-17-for-matlab-r2012a-on-mac-os-x-10-9/

Upvotes: 0

Paul R
Paul R

Reputation: 213049

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
$

Upvotes: 1

Related Questions