Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md #124

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

DarioHett
Copy link

I ran intho the following issue trying to hack on the implementation.

>> opam --version
2.1.5
>> opam switch create 5.0.0+trunk --repos alpha,default

<><> Installing new switch packages <><><><><><><><><><><><><><><><><><><><><><>
Switch invariant: ["ocaml-variants" {= "5.0.0+trunk"}]
[ERROR] Could not determine which packages to install for this switch:
  * Missing dependency:
    - ocaml-variants > 5.3.1~
    no matching version
>> opam switch list-available --repositories alpha,beta,default
ocaml-base-compiler                    5.0.0                                  Official release 5.0.0
ocaml-variants                         5.0.0+options                          Official release of OCaml 5.0.0
ocaml-variants                         5.0.0+tsan                             OCaml 5.0.0, with ThreadSanitizer instrumentation
ocaml-variants                         5.0.1+trunk                            Latest 5.0 development
ocaml-base-compiler                    5.1.0~alpha1                           First alpha release of OCaml 5.1.0
>> opam switch create 5.0.1+trunk --repos alpha,default

<><> Installing new switch packages <><><><><><><><><><><><><><><><><><><><><><>
Switch invariant: ["ocaml-variants" {= "5.0.1+trunk"}]

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
∗ installed base-bigarray.base
∗ installed base-threads.base
∗ installed base-unix.base
⬇ retrieved ocaml-variants.5.0.1+trunk  (https://github.com/ocaml/ocaml/archive/5.0.tar.gz)
∗ installed ocaml-variants.5.0.1+trunk
∗ installed ocaml-config.3
∗ installed ocaml.5.0.1
∗ installed base-domains.base
∗ installed base-nnp.base
Done.
# Run eval $(opam env --switch=5.0.1+trunk) to update the current shell environment`

@polytypic
Copy link
Contributor

Thanks!

That opam switch create ... instruction must have been written a long time ago and no longer makes sense.

We should recommend using the latest version of the OCaml compiler, which, at the moment, is 5.1.1 so the command to use today would be opam switch create 5.1.1.

However, I would recommend avoiding specifying a compiler version like that in the README. OCaml 5.1.1 is also known to have multicore related bugs and issues and will be outdated soon.

We should instead recommend using the latest official release whose version is greater than 5.0.0. You can use opam switch list-available to see the list of available versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants