Libsvm version 2.88 - How to Download and Install on Mac OS X
Sunday the 22nd of November, 2009

    version 2.88

      View the most recent changes for the libsvm port at: libsvm.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for libsvm.
      The raw portfile for libsvm 2.88 is located here:
      http://libsvm.darwinports.com/dports/math/libsvm/Portfile
      Find related portfiles with the unique DarwinPorts.com search feature.
      Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/libsvm


      The libsvm Portfile 42773 2008-11-30 20:52:03Z febeling macports.org $

      PortSystem 1.0

      Name: libsvm
      Version: 2.88

      Category: math
      Maintainers: febeling
      Platform: darwin
      Description: A free Support Vector Machine implementation.
      Long Description: ${description} By Chih-Chung Chang and Chih-Jen Lin of National Taiwan University. \"LIBSVM is an integrated software for support vector classification, (C-SVC, nu-SVC), regression (epsilon-SVR, nu-SVR) and distribution estimation (one-class SVM ). It supports multi-class classification.\"

      Homepage: http://www.csie.ntu.edu.tw/~cjlin/libsvm/
      Master Sites: ${homepage}

      Checksums: sha1 92e44416eb2bc09d38f803273b659f3caff2a737
      Patch Files: patch-Makefile.diff

      use_configure no

      set libver ${version}.0
      build.target all
      build.args PREFIX=${prefix} VERSION=${libver}

      destroot {
      xinstall -m 755 -W ${worksrcpath} svm-train svm-predict svm-scale ${destroot}${prefix}/bin
      xinstall -m 644 -W ${worksrcpath} libsvm.a libsvm.${libver}.dylib ${destroot}${prefix}/lib
      xinstall -m 644 -W ${worksrcpath} svm.h ${destroot}${prefix}/include

      ln -sf ${name}.${libver}.dylib ${destroot}${prefix}/lib/${name}.dylib

      set docs ${destroot}${prefix}/share/doc/${name}-${version}
      xinstall -m 755 -d ${docs}
      xinstall -m 644 -W ${worksrcpath} COPYRIGHT README FAQ.html ${docs}
      }


    If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the main Darwin Ports page.

    Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:


      %  cd /opt/local/bin/portslocation/dports/libsvm
      % sudo port install libsvm
      Password:
    You will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to:

      ---> Fetching libsvm
      ---> Verifying checksum for libsvm
      ---> Extracting libsvm
      ---> Configuring libsvm
      ---> Building libsvm with target all
      ---> Staging libsvm into destroot
      ---> Installing libsvm
    - Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using libsvm with these commands:
      %  man libsvm
      % apropos libsvm
      % which libsvm
      % locate libsvm

     Where to find more information:

    Darwin Ports



    Lightbox this page.