Building influxdb master 1.x for Windows

Hi,

I’ve successfully modified and built influxdb master 1.x on Windows via Docker. However, my goal is to build an .exe for Windows. I tried using various flags and compilers but it led to errors in building libflux. I tried setting up and building within Windows but it led to the same libflux errors.

Windows steps:

Installed git bash, golang 1.24.9 to directory C:/go, rustup, msys2 and all the available libraries (duplicated and renamed mingw32-make.exe to make.exe)

set env variables

  • GOPATH=C:\\gopath
  • GOROOT=C:\\go
  • PATH=C:\\go\\bin;C:\\gopath\\bin;C:\\msys2\\ucrt64\\bin

Via Git Bash
git clone --single-branch --branch master-1.x https://github.com/influxdata/influxdb.git

cd c:\\gopath\src\github.com\influxdata\influxdb

make

Error:

go build ./...
github.com/influxdata/flux/libflux/go/libflux: ./pkg-config.sh: exec: "C:\\gopath\\pkg\\mod\\github.com\\influxdata\flux@v0.196.1\\libflux\\go\\libflux\\pkg-config.sh": file does not exist
make: *** [Makefile:4: build] Error 1

Is it missing the pkg-config.sh from flux? The file doesn’t exist in the flux repo. Where is it even called? Any tips on getting influx compiled for windows?