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
- sudo apt-get install Libx11-dev
Then download the source code from the gnuplot:
[Plain]View Plaincopy
- 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
- Tar xzvf gnuplot-4.6.rc1.tar.gz
- CD GNUPLOT-4.6.RC1
- ./configure
- Make
- sudo make install
Install LIBSVM:
[Plain]View Plaincopy
- 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)