-
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-config
For 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 libapparmor
development packageFor AppArmor details Linux build optional libcap
development packageFor capabilities details Linux build optional libnuma
development packageFor NUMA memory details Linux build optional libselinux
development packageFor SELinux details BSD build optional libsysinfo
package 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
make
withgmake
above to ensure you run using GNU Make (BSD make will hang at the test stage!)
$ git clone https://github.com/jamesodhunt/procenv
$ cd procenv
$ snapcraft
FreeBSD 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'