File: INSTALL.txt

package info (click to toggle)
python-pattern 2.6%2Bgit20150109-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 78,672 kB
  • sloc: python: 53,865; xml: 11,965; ansic: 2,318; makefile: 94
file content (16 lines) | stat: -rw-r--r-- 889 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
The pattern.vector module comes bundled with precompiled binaries for LIBSVM and LIBLINEAR. These should work on 32-bit and 64-bit Windows, Mac OS X and Ubuntu architectures. If not, you need to compile a binary from source.

To install from source, download the latest versions of LIBSVM and LIBLINEAR:
http://www.csie.ntu.edu.tw/~cjlin/libsvm/
http://www.csie.ntu.edu.tw/~cjlin/liblinear/

- From the command line, do "make" in libsvm/. 
- Now do "make" in libsvm/python/. 
- You should see a file "libsvm.so.2", which is the binary you need.
- Put it in pattern/vector/svm/libsvm-x.xx/

Repeat the steps for LIBLINEAR.

You may need to rename option "-soname" to "-install_name" in the Makefile on Mac OS X. 

You may need to modify pattern/vector/svm/svm.py around line 15 to import the new binary. Please send us a copy of the compiled binary so we can include it in the next release.