Install LIBSVM under Linux (Ubuntu)

Source: Internet
Author: User

Original: http://blog.csdn.net/rav009/article/details/12995095

Python and gnuplot are required before installing LIBSVM

Linux generally comes with python2.7, so Python installation is no longer a repeat

Installing gnuplot under Ubuntu cannot be done directly with sudo apt-get install gnuplot, because the precompiled gnuplot does not recognize the Ubuntu graphical interface, so you must first run this sentence:

[Plain]View Plaincopy
    1. sudo apt-get install Libx11-dev


Then download the source code from the gnuplot:

[Plain]View Plaincopy
    1. wget http://nchc.dl.sourceforge.net/project/gnuplot/gnuplot/4.6.rc1/gnuplot-4.6.rc1.tar.gz


Unzip it, enter the extracted directory to compile, install:

[Plain]View Plaincopy
    1. Tar xzvf gnuplot-4.6.rc1.tar.gz
    2. CD GNUPLOT-4.6.RC1
    3. ./configure
    4. Make
    5. sudo make install

Install LIBSVM:

[Plain]View Plaincopy
    1. wget http://www.csie.ntu.edu.tw/~cjlin/cgi-bin/libsvm.cgi?+http://www.csie.ntu.edu.tw/~cjlin/libsvm+tar.gz


After the download is complete, I put the LIBSVM folder in the/usr/bin directory and found the easy.py and grid.py two files under the Tools folder. Set the path where the gnuplot is in place. Note that the Gnuplot pathname is not the extracted directory, but to use the which gnuplot command to find out. After I install the gnuplot path is/usr/local/bin/gnuplot

Finally execute the make command under the LIBSVM folder and execute the make command under subdirectory python.

This LIBSVM installation is complete!

A blog with a good interpretation of SVM, easy to understand: Click to open the link

Install LIBSVM under Linux (Ubuntu)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.