如何从源代码编译InfluxDB

问题描述

当我编译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

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

解决方法

看看自述文件,编译influxdb的过程如下: https://github.com/influxdata/influxdb/blob/master/README.md