Menu
  • HOME
  • TAGS

oasis picks up wrong ocamlbuild

ocaml,ocamlbuild,ocamlfind,oasis

Try deleting setup.data and running make again. Oasis caches the paths the first time you try to build, and doesn't update them automatically afterwards. Perhaps you tried to build it, then used opam switch, then tried to build it again?

Building library with ocamlbuild, installing it with ocamlfind - what's the best practice?

ocaml,ocamlbuild,ocamlfind

No, there is no specific integration. ocamlbuild is agnostic of pre-build (configuration) and post-build (installation) tools, and ocamlfind is similarly agnostic of build tools. You are correct that ocamlbuild is not very good at reliably simlinking targets from _build/. This is a known glitch, but you should feel free to...

Ocamlfind command not found

centos,make,ocaml,opam,ocamlfind

This command eval 'opam config env' is almost assuredly a typo and was supposed to be eval `opam config env` though using $(...) instead is the modern equivalent and avoids this font-fact confusion eval $(opam config env) That being said that just sets the environment variables in the current shell...

replace camlp4 with camlp5 in utop

ocaml,camlp4,ocamlfind,utop

$ ocaml OCaml version 4.02.1 Findlib has been successfully loaded. Additional directives: #require "package";; to load a package #list;; to list the available packages #camlp4o;; to load camlp4 (standard syntax) #camlp4r;; to load camlp4 (revised syntax) #predicates "p,q,...";; to set these predicates Topfind.reset();; to force that packages will be reloaded...