UNFINISHED: Getting libguestfs to work on MacOS with Golang

Originally posted on 2024-01-01

This is annoying but necessary…

Step 1: Get genisoimage by installing cdrtools and symlinking mkisofs to it

brew install cdrtools
ln -s /opt/homebrew/bin/mkisofs /opt/homebrew/bin/genisoimage
hash -r

Step 2: Install augeas and libmagic (guidance on libmagic from a gist)

Step 3: Clone the Golang library and build it

git clone https://github.com/MuralidharB/libguestfs-1.44.1.git
cd libguestfs-1.44.1
export GO111MODULE=auto
aclocal
./autogen.sh