Installing LIBSVM on Leopard

LIBSVM is a popular software library for performing document classification using support vector machines.

One easy approach to installing LIBSVM on Mac OS X Leopard is to use the popular MacPorts (download page). If you have MacPorts installed, you can install LIBSVM as shown below.

The Portfile has recently been fixed, so be sure to sync like so:

$ sudo port -v selfupdate

Install libsvm already:

$ sudo port install libsvm

Naturally, I’m particularly interested in using the Ruby bindings for LIBSVM. I’m not completely satisfied with the method I used to get them built and installed, but I’ll write it up.

NOTE: The Portfile for LIBSVM is currently was broken, but I contributed a very minor patch which updates the port to LIBSVM 2.86. The patch has been accepted by the maintainer and will soon be has been rolled.

Sorry, comments are closed for this article.