-
Install dependencies
Platform Usage Required? Dependency Rationale common build yes GCC or Clang compiler For building the code common build yes GNU Autoconf For configuring the source package common build yes GNU Autoconf Archive For configuring the source package common build yes GNU Automake For generating makefiles common build yes GNU Make For building the code common build yes pkgconf/pkg-configFor configuring build dependencies common test optional Check For running unit tests common test optional Expat For validating XML output common test optional GNU Groff For checking man page documentation Linux build optional libapparmordevelopment packageFor AppArmor details Linux build optional libcapdevelopment packageFor capabilities details Linux build optional libnumadevelopment packageFor NUMA memory details Linux build optional libselinuxdevelopment packageFor SELinux details BSD build optional libsysinfopackage or portFor general memory details Note:
The definitive list of dependenciese can always be seen by looking at the GitHub Actions workflow file here:
-
Checkout the source code:
$ git clone https://github.com/jamesodhunt/procenv $ cd procenv -
Configure and build:
$ autoreconf -fi && ./configure $ make && make check && sudo make install
Note:
For BSD systems, replace
makewithgmakeabove to ensure you run using GNU Make (BSD make will hang at the test stage!)
$ git clone https://github.com/jamesodhunt/procenv
$ cd procenv
$ snapcraftFreeBSD is awkward. This worked for me on FreeBSD 10.2:
$ gmake CC=clang-devel LD=ld.gold LDFLAGS='-v -fuse-ld=gold'Try this:
$ ./configure CC=clang CFLAGS='-I/usr/pkg/include' LDFLAGS='-L/usr/pkg/lib'