libsvm 在MATLAB平台下的安装

libsvm-mat在MATLAB平台下的安装

 

1. 将libsvm-matlab所在工具箱添加到matlab工作搜索目录
(File ——> Set Path… ——> Add with Subfolders...);
2. 选择编译器(mex -setup);
3. 编译文件(make)。

 

>> mex -setup
Please choose your compiler for building external interface (MEX) files:
Would you like mex to locate installed compilers [y]/n? y
Select a compiler:
[1] Lcc-win32 C 2.4.1 in C:\PROGRA~1\MATLAB\R2010b\sys\lcc
[2] Microsoft Visual C++ 2008 SP1 in C:\Program Files\Microsoft Visual Studio 9.0
[3] Microsoft Visual C++ 6.0 in C:\Program Files\Microsoft Visual Studio
[0] None
Compiler: 3
Please verify your choices:
Compiler: Microsoft Visual C++ 6.0
Location: C:\Program Files\Microsoft Visual Studio
Are these correct [y]/n? y
Trying to update options file: C:\Documents and Settings\Administrator\Application Data\MathWorks\MATLAB\R2010b\mexopts.bat
From template:              C:\PROGRA~1\MATLAB\R2010b\bin\win32\mexopts\msvc60opts.bat
Done . . .
**************************************************************************
  Warning: The MATLAB C and Fortran API has changed to support MATLAB
           variables with more than 2^32-1 elements.  In the near future
           you will be required to update your code to utilize the new
           API. You can find more information about this at:
http://www.mathworks.com/support/solutions/en/data/1-5C27B9/?solution=1-5C27B9
           Building with the -largeArrayDims option enables the new API.
**************************************************************************
>> make
  C:\PROGRA~1\MATLAB\R2010B\BIN\MEX.PL: Error: 'libsvmread.c' not found. 

If make.m failes, please check README about detailed instructions.

(我用3.11版本的也出现这样的问题 后来下了个2.91版本的就可以了. 可以肯定不是路径设置的问题)

解决方法,如下图,设置Current folder:

libsvm_install_current_folder

 

http://archive.ics.uci.edu/ml/index.html

http://www.csie.ntu.edu.tw/~cjlin/libsvm

posted @ 2011-12-03 20:26  emanlee  阅读(4970)  评论(0编辑  收藏  举报