Building OCaml 5 #15654
Building OCaml 5
#15654
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
OCaml 4.07.1
is available throughits-pointless
repo, yet it's an outdated version which does not support multi-threading.The OCaml package manager, OPAM, is also available via the repo mentioned above.
But if you try to install OCaml 5 on native Termux (not proot-distro linux) with
opam switch create 5.0.0
, installation will fail.If you want to try the new multicore version OCaml like I do, here's how you do it.
apt install libandroid-shmem
git clone https://github.com/ocaml/ocaml
Then
cd ocaml
, modify theconfigure.ac
like this:configure.ac
Then
make configure
./configure --prefix=$PREFIX --disable-warn-error --without-afl LDFLAGS="-landroid-shmem"
And finally
make install
You can find the original discussion about building OCaml 5 for Android here
Beta Was this translation helpful? Give feedback.
All reactions