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 +```