summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWiktor Kwapisiewicz <wiktor@metacode.biz>2021-04-09 14:37:05 +0200
committerWiktor Kwapisiewicz <wiktor@metacode.biz>2021-04-12 13:51:37 +0200
commit055f659a245f78cf51caf1f959870d97081f6143 (patch)
tree63ba9c04f7ca6048172e7944bd0399619129c4dd
parent215511fc530de5901a0c1d137c02f843133e5b23 (diff)
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 <argit@amhelm.com> Co-authored-by: Christian Ribeaud <chri@ribeaud.ch>
-rw-r--r--README.md16
1 files changed, 15 insertions, 1 deletions
diff --git a/README.md b/README.md
index 78368156..9c5b58de 100644
--- a/README.md
+++ b/README.md
@@ -288,12 +288,26 @@ pkgs.mkShell {
</details>
-### 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