libsvm-ruby assumes libsvm sets the header to PREFIX/include/libsvm/svm.h , but the macports package puts it in /opt/local/include .
This is kludge, but the easiest solution is to manually create the /opt/local/include/libsvm and move / copy the svm.h header there. You still have to run configure with the LDFLAGS and CPPFLAGS settings, since it seems that installing macports does not update pkg-config (which uses libsvm-ruby to search for compiler flags).
I would report this as a package error for a supporting macports. If you understand macport Portfiles, you may even be able to provide a patch.
Update : I have not actually tried this, so there may be other problems after you pass the header file check.
Update 2 . I was able to complete the setup with:
sudo mkdir /opt/local/include/libsvm sudo cp /opt/local/include/svm /opt/local/include/libsvm/ CPPFLAGS=-I/opt/local/include LIBS=-L/opt/local/lib ./configure
But libsvm-ruby seems to depend on obstack.h, which does not exist on OS X. Based on this , there may be a way to copy the files you need, but you will need to fix libsvm-ruby main.cpp and Makefile so that tie it up.
Good luck
source share