【问题标题】:How to compiling InfluxDB from source code如何从源代码编译 InfluxDB
【发布时间】:2021-02-14 11:19:11
【问题描述】:

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

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

【问题讨论】:

  • 您找到答案了吗?我正在尝试编译通量 repl 并遇到同样的问题......标准程序也不起作用,我不明白为什么......

标签: go influxdb flux


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 2018-02-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-04-27
    相关资源
    最近更新 更多