From 055f659a245f78cf51caf1f959870d97081f6143 Mon Sep 17 00:00:00 2001 From: Wiktor Kwapisiewicz Date: Fri, 9 Apr 2021 14:37:05 +0200 Subject: doc: Add section on building on macOS using Brew. - Combine MRs !1054 and !1041. - Remove mention of XCode CLI tools as they are installed when installing Brew. - Use rust instead of rustup-init as this immediately makes cargo and other tools available on command line. - Remove pkg-config as it is a dependency of rust. - Remove coreutils as they are available through XCode CLI tools. - Add instruction on setting the environment variable as this seems to be a minor issue at least on Catalina. Closes !1054 and !1041. Co-authored-by: Alex R Co-authored-by: Christian Ribeaud --- README.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 78368156..9c5b58de 100644 --- a/README.md +++ b/README.md @@ -288,12 +288,26 @@ pkgs.mkShell { -### macOS (Mojave), using MacPorts +### macOS + +#### MacPorts ```shell $ sudo port install cargo rust capnproto nettle pkgconfig coreutils ``` +#### Brew + +```shell +$ brew install rust capnp nettle +``` + +If building the transitive dependency `nettle-sys` reports missing `libclang.dylib` file make sure that `DYLD_LIBRARY_PATH` is set correctly: + +```shell +export DYLD_LIBRARY_PATH=/Library/Developer/CommandLineTools/usr/lib/ +``` + ### Windows Please make sure to preserve line-endings when cloning the Sequoia -- cgit v1.2.3