bootstrap.txt 646 B

123456789101112131415161718192021222324
  1. # https://blog.danny-willems.be/ocaml-raspberry-pi/
  2. $ sudo apt-get install ocaml m4
  3. # opam
  4. $ cd ~/Downloads
  5. $ git clone https://github.com/ocaml/opam
  6. $ cd opam
  7. $ ./configure
  8. $ make lib-ext
  9. $ nice make
  10. $ sudo make install
  11. $ nice opam init
  12. $ nice opam switch install 4.10.0+musl+static+flambda
  13. # https://www.systutorials.com/how-to-statically-link-ocaml-programs/
  14. # via https://discuss.ocaml.org/t/statically-link/1464/13
  15. # $ fgrep -- '--disable-shared' ~/.opam/repo/default/packages/ocaml-variants/ocaml-variants.4.??.?+musl+static+flambda/opam
  16. # https://github.com/ocaml/opam-repository/commit/87bc3c71
  17. $ nice opam install --yes dune tyre