-
Notifications
You must be signed in to change notification settings - Fork 376
Description
I have built an Ocaml compiler 4.02.3+bucklescript-1 and opam master branch too. How do I make this compiler opam known now?
In the following you can see, that I have a working opam 2.1.0~beta and a working ocamlc 4.02.3+BS. Now is the question, how to get these two components to work together?
Charleen@ROY /cygdrive/d/development/OCaml/opam
$ ocamlc -v
The OCaml compiler, version 4.02.3+BS
Standard library directory: /cygdrive/d/development/ocaml/home/Charleen/.opam/ocaml-4.02.3-buckle-1//lib/ocaml
Charleen@ROY /cygdrive/d/development/OCaml/opam
$ opam --version
2.1.0~beta
How do I teach opam to recognize and find the existing compiler?
The following excerpt from the installation instructions is rather unclear:
And exactly before this is where the creation of a linking of opam and an existing OCaml compiler instance should be mentioned and explained - with an example!
My first attempt with switch creates and given directory:
$ opam switch create /cygdrive/d/development/ocaml/home/Charleen/.opam/ocaml-4.02.3-buckle-1/
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
∗ installed base-bigarray.base
∗ installed base-threads.base
∗ installed base-unix.base
⬇ retrieved ocaml-base-compiler.4.08.1 (cached)
Opam didn't recognize the already in the given directory existing compiler and installed 4.08.1.
Do I need an extra tool to make a switch from an OCaml compiler?
