1. download libsvm-3.21.tar.gz on official website: http://www.csie.ntu.edu.tw/~cjlin/libsvm/
2. untar and uploaded to /usr/local/bin/libsvm-3.21
3. run "make" at /usr/local/bin/libsvm-3.21
4. libsvm could be used independently now, "./svm-train heart_scale" for test.
5. For python, cope svm.py svmutil.py under /usr/local/bin/libsvm-3.21/python to /usr/local/lib/python2.7/site-packages
6. run "make" at /usr/local/bin/libsvm-3.21/python
7. linux中在安装libsvm时组要将make生成的/usr/local/bin/libsvm-3.21/下的libsvm.so.2 copy到/usr/local/lib/python2.7/下
it would be work