Modified from here to work with Debian Jessie Observium Turnkey VM
Step 1 – Install Required Packages
apt-get install autoconf bzip2 make build-essential
Step 2 – Download the ‘wmic’ source to /tmp
cd /tmp
Step 3 – Untar the source
tar -jxvf wmi-1.3.14.tar.bz2
Step 4 – Go into the directory and add a line of text to the top of ‘GNUmakefile’
cd wmi-1.3.14/
#Edit ‘GNUmakefile’ and add the following at the top (just after the License Info) Step 5
ZENHOME=../..
Step 5 – Compile
make “CPP=gcc -E -ffreestanding”
#You will see an error, but if the bin file exists the build worked
Step 6
cp bin /bin/wmic