How to build Tezos on MacOS (abandoned)
On MacOS Catalina
code:bash
brew install libev pkg-config
git clone git@gitlab.com:tezos/tezos.git
cd tezos
C_INCLUDE_PATH=\
/usr/local/Cellar/libev/4.27/include\
:\
/usr/local/Cellar/pkg-config/0.29.2/include\
:\
/usr/local/Cellar/hidapi/0.9.0/include\
LIBRARY_PATH=\
/usr/local/Cellar/libev/4.27/lib\
:\
/usr/local/Cellar/pkg-config/0.29.2/lib\
:\
/usr/local/Cellar/hidapi/0.9.0/lib\
make build-deps`
make
make build-deps is successfully executed.
make is failed due to unrecognized ocaml pkgs. (They are installed by Opam but not recognized by ocamlfind)
code:bash
FILE=/tmp/ocamlfind.log
pkgs="astring base64 bigstring cohttp-lwt cohttp-lwt-unix digestif digestif.c ezjsonm fmt ipaddr ipaddr.unix jsonm logs logs.fmt lwt lwt.unix lwt_log lwt_log.core mtime mtime.clock.os ocplib-endian ocplib-endian.bigstring ocplib-ocamlres ptime ptime.clock.os re re.str rresult tls uri"\
for pkg in $pkgs; do
ocamlfind query $pkg 2>> $FILE
done
if test -f "$FILE"; then
opam install $pkgs
fi
cat $FILE
rm $FILE
As per debug command above, some of C/Unix dependencies are not recognized by Opam.
code:stderr
ERROR Package digestif has no version c. ERROR Package ipaddr has no version unix. ERROR Package logs has no version fmt. ERROR Package lwt has no version unix. ERROR Package lwt_log has no version core. ERROR Package mtime has no version clock.os. ERROR Package ocplib-endian has no version bigstring. ERROR No package named ocplib-ocamlres found. ERROR Package ptime has no version clock.os. ERROR Package re has no version str.