From 1cf10281aef89e0d1d762443873ce01f51d08792 Mon Sep 17 00:00:00 2001 From: Nick Feamster Date: Fri, 14 Nov 2025 15:44:08 -0600 Subject: [PATCH] Update macOS build instructions with argp-standalone configuration Added proper configure command for macOS that passes the argp-standalone include and library paths. This matches the fix applied to the main repository README. --- nprint/install.md | 44 +++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 41 insertions(+), 3 deletions(-) diff --git a/nprint/install.md b/nprint/install.md index 9a086b1..ab1cbf0 100644 --- a/nprint/install.md +++ b/nprint/install.md @@ -23,14 +23,52 @@ nav_order: 1 `sudo apt-get install libpcap-dev` -### Install dependencies on Mac OS +### Install dependencies on macOS -`brew install argp-standalone` +```bash +brew install argp-standalone autoconf automake libtool +``` ## Install +### Building from source (latest development version) + +```bash +git clone https://github.com/nprint/nprint.git +cd nprint +autoreconf -i +``` + +**On Debian/Linux:** +```bash +./configure +make +sudo make install +``` + +**On macOS:** +```bash +./configure CPPFLAGS="-I/opt/homebrew/opt/argp-standalone/include" LDFLAGS="-L/opt/homebrew/opt/argp-standalone/lib" +make +sudo make install +``` + +### Installing from release tarball + 1. Download the latest release tar [here](https://github.com/nprint/nprint/releases/) 2. Extract the tar `tar -xvf [nprint-version.tar.gz]` 3. `cd [nprint-directory]` -2. `./configure && make && sudo make install` +**On Debian/Linux:** +```bash +./configure +make +sudo make install +``` + +**On macOS:** +```bash +./configure CPPFLAGS="-I/opt/homebrew/opt/argp-standalone/include" LDFLAGS="-L/opt/homebrew/opt/argp-standalone/lib" +make +sudo make install +```