Ahoj,
tak Ocaml by byl:
sudo apt install opam
opam init
opam switch create 4.02.1
opam switch 4.02.1
ocaml -version
The OCaml toplevel, version 4.02.1
Instalace Unison:
sudo mkdir -p /usr/src/unison/
sudo wget https://github.com/bcpierce00/unison/archive/refs/tags/v2.51.2.tar.gz -O unison.tar.gz
sudo tar xzvf unison.tar.gz --strip-components 1
sudo make UISTYLE=text
ale kompilace končí chybou:
make -C src UISTYLE=text
make[1]: Vstupuje se do adresáře „/usr/src/unison/src“
UISTYLE = text
Building for Unix
NATIVE = true
THREADS = false
STATIC = false
OSTYPE =
OSARCH = Linux
ocamlopt: ubase/rx.mli ---> ubase/rx.cmi
ocamlopt -g -unsafe-string -I lwt -I ubase -I system -I fsmonitor -I fsmonitor/linux -I fsmonitor/windows -I system/generic -I lwt/generic -c /usr/src/unison/src/ubase/rx.mli
ocamlopt: OCaml has been configured with -force-safe-string: -unsafe-string is not available.
Usage: ocamlopt <options> <files>
Try 'ocamlopt --help' for more information.
make[1]: *** [Makefile.OCaml:413: ubase/rx.cmi] Chyba 2
make[1]: Opouští se adresář „/usr/src/unison/src“
make: *** [Makefile:6: text] Chyba 2
vyzkoušel jsem Unison nainstalovat přes opam:
opam install unison
unison -version
unison version 2.51.2 (ocaml 4.02.1)
ale chybí tam fsmonitor.