1、git clone https://github.com/cjlin1/liblinear.git (默认下载master版本)
2、cd liblinear
3、make
4、cd python
5、make
6、cp *.py /usr/lib/python2.7/site-packages/
7、cd ..
8、cp liblinear.so.3 /usr/lib/python2.7/
9、make a test to make sure we have installed liblinear:
vi test.py "import liblinear; print "hello"" >>"hello"