Has anyone managed to get wmic installed onto Ubuntu 16.04 LTS Server? These instructions worked on 14.04 (including for people on 14.04) but I'm hitting error after error on 16.04 and wondered if anyone else had success
cd /tmp
mkdir wmic
cd wmic
apt install autoconf gcc libdatetime-perl make build-essential g++ python-dev
wget http://www.opsview.com/sites/default/files/wmi-1.3.16.tar_.bz2
bunzip2 wmi-1.3.16.tar_.bz2
tar -xvf wmi-1.3.16.tar_
cd wmi-1.3.16/
vim Samba/source/pidl/pidl
:583 (to jump to line 583)
remove the word defined before @$pidl
:wq
export ZENHOME=/usr
make "CPP=gcc -E -ffreestanding"
cp Samba/source/bin/wmic /bin
Many thanks