Update files generated from _oasis
libsvm 0.9.3 cannot be installed in OCaml 4.03 or above.
https://opam.ocaml.org/packages/libsvm/
However, I succeeded to install libsvm-ocaml by re-generating files from _oasis in OCaml 4.04 and 4.05. Could you update files by the latest oasis and release a new version to opam?
Comments (11)
-
-
please notify us when there is a new release published: https://github.com/ocaml/opam-repository/pull/10186
-
reporter I replied in opam-repository discussion: https://github.com/ocaml/opam-repository/pull/10186#issuecomment-326173467
-
reporter @ogu Did you generate setup files by the latest oasis? It seems that you use oasis 0.4.5: https://bitbucket.org/ogu/libsvm-ocaml/src/fd9ca341145fc9eab6ab8ee90dbe68eaff37368c/setup.ml?at=release-0.9.3&fileviewer=file-view-default#setup.ml-6
ocamlfind: Error from package `threads': Missing -thread or -vmthread switch
This error is caused by the too old version of oasis. I used oasis 0.4.10 and solved this problem. Could you retry to regenerate oasis-related files?
-
repo owner Sorry for the delay! I regenerated the OASIS files and included an opam so that you can install the package by pinning the repository. This is just an immediate solution. I make a new release on OPAM as soon as I find the time to switch to jbuilder as new build system.
-
reporter -
Where is the conf-libsvm package? I don't see it in the opam repository neither a pull request for it. I'd like to have a look at it since I created several conf-* packages.
-
repo owner Thanks Akinori, a
conf-libsvm
would be great since the currentdepext
section is too restrictive. I added a jbuilder branch which I would like to merge intomaster
to create a new release of the package. However, runningjbuilder runtest
leads to linker errors. I followed the documentation on defining a library with c stubs with jbuilder and created the following jbuild file. Maybe somebody in this thread can checkout this branch, runjbuilder runtest
and tell me what I am missing? -
reporter conf-libsvm was released at Sep 1st: https://opam.ocaml.org/packages/conf-libsvm/ Note that package managers on Linux distributions install
libsvm.h
at/usr/local/include/libsvm
, but homebrew (Mac OSX) installslibsvm.h
at/usr/local/include
. For compatibility between Linux and Mac OSX, it is required to switch an include path like- https://github.com/ocaml/opam-repository/blob/master/packages/conf-libsvm/conf-libsvm.3/files/test.c#L2-L6
- https://github.com/ocaml/opam-repository/blob/master/packages/conf-libsvm/conf-libsvm.3/opam#L10
BTW I tried the jbuilder branch, but I cannot solve the problem.
-
repo owner -
repo owner - changed status to closed
- Log in to comment
It would be nice to be able to install libsvm with recent ocaml compilers. See there for errors: https://travis-ci.org/ocaml/opam-repository/jobs/269893195 https://travis-ci.org/ocaml/opam-repository/jobs/269893196 https://travis-ci.org/ocaml/opam-repository/jobs/269893197