

They actually do a very good deal describing the Mex woes Mac users will encounter when ‘upgrading’ to Xcode 4.3. Instead, it ships with a similar compiler (gcc-4.2 front-end to LLVM), that Matlab can use IFF you download and apply a patch from the Mathworks. Xcode used to ship with that, but no more.

Sudo ln -s /Applications/Xcode.app/Contents/Developer/Platforms/Īnd that’s that. But hey, I’m root on this machine, so let’s just bring it back: I suspect it always was in a more complicated sounding directory than /Developer, and /Developer just used to be a symlink to that. Instead, it’s found in /Applications/Xcode.app/Contents/Developer/Platforms/ First of all, for some obscure reason, Apple has done away with the /Developer directory. So, we’re fine, right? Surely Matlab will work fine now, right? Wrong again. Look for Command Line Tools, and click on install.
#Libsvm matlab for mac how to
Here’s how to get them (back): in Xcode: Preferences -> Downloads With "Components" selected, you will see a list of downloadable components. As I have version 4.3 installed, that means me.
#Libsvm matlab for mac install
They have removed the command line utilities from their standard Xcode install as of version 4.2. What the? No gcc? How’s that possible? I had just installed the latest shiny Xcode, everything should be a-ok! But noooo, apparently Apple believes that real developers don’t need command line tools anymore. Applications/MATLAB_R2011b.app/bin/mex: line 305: gcc-4.2: command not found Note that LibSVM itself is now at version 3.11, but I haven’t been able to find out if there are any significant changes between 3.0-1 and 3.11 that would warrant me changing over.Īnyway, after downloading and unpacking the LibSVM files, I tried to set up my fresh Matlab installation to use the correct compiler. I use the version provided by UC Berkeley, which is based on LibSVM 3.0-1 but includes the Histogram Intersection Kernel, useful for my work with LBPs and other histogram-based appearance descriptors. One of the things I need for my day-to-day research is the Matlab version of LibSVM. I heard some bad stories about backwards compatibility issues of Lion, but heck, they’ve had plenty of time to sort that out, right? Wrong. So, I’ve finally received my super-hot new 15” MacBook Pro, and I’m super happy with it! Although slightly reluctant about upgrading to Lion and Xcode 4, I thought this would probably be the best moment to do it.
