You can see a good discussion here "http://stackoverflow.com/questions/13243410/using-libsvm-on-octave-windows". This page also seems useful "http://openclassroom.stanford.edu/MainFolder/DocumentPage.php?course=MachineLearning&doc=exercises/ex7/ex7.html". Or "http://octave.1599824.n4.nabble.com/Using-LIBSVM-with-Octave-on-MAC-td1635390.html"