From 33b41bfe3891befd5a8aae6df263b0df3aaccc0d Mon Sep 17 00:00:00 2001 From: N-R-K Date: Tue, 31 May 2022 06:44:44 +0000 Subject: [PATCH] Update compilation instruction for macos --- Developer-guides.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Developer-guides.md b/Developer-guides.md index 5933bca..180d39d 100644 --- a/Developer-guides.md +++ b/Developer-guides.md @@ -158,6 +158,12 @@ $ ls -l nnn-static 31953 user 20 0 2428 2244 4 S 0.0 0.0 0:00.02 ./nnn-static -cdDEnQrux /usr/bin ``` +## Compile for MacOS + +On macos the default system ncurses library is too old and can cause issues. Install a more up to date version from homebrew and link against it via adding the library path to `$LDLIBS` + + $ LDLIBS="-L/opt/homebrew/opt/ncurses/lib/" make + ## Compile for Pi The `nnn` version available as a stable Raspbian package is very out of date (v2.2), which means that the only way to get a recent version of `nnn` is to compile from source.