如何从源代码编译 InfluxDB

How to compiling InfluxDB from source code

编译influxDB时遇到问题。我找不到 flux.pc 文件。

错误信息是:

skyfire@skyfire:~/goproject/src/github.com/influxdata/influxdb$ go install ./...
# /bin/pkg-config --cflags  -- flux
Package flux was not found in the pkg-config search path.
Perhaps you should add the directory containing `flux.pc'
to the PKG_CONFIG_PATH environment variable
No package 'flux' found
/bin/pkg-config: exit status 1
skyfire@skyfire:~/goproject/src/github.com/influxdata/influxdb$

这是我的编译命令:

cd $GOPATH
mkdir -p src/github.com/influxdata
git clone https://github.com/influxdata/influxdb.git
cd influxdb
go install ./...

我的go版本是go version go1.13.8 linux/amd64

有谁知道如何解决这个问题?

看看readme,编译influxdb是这样的: https://github.com/influxdata/influxdb/blob/master/README.md