# Build prometheus failed from source

**URL:** <https://discuss.prometheus.io/t/build-prometheus-failed-from-source/88>\
**Category:** Development\
**Created:** [March 24, 2021, 12:35pm UTC](https://discuss.prometheus.io/t/build-prometheus-failed-from-source/88 "2021-03-24T12:35:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![liangyuanpeng](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.prometheus.io/liangyuanpeng/32/68_2.png) [@liangyuanpeng](https://discuss.prometheus.io/u/liangyuanpeng)\
**Post date:** [March 24, 2021, 12:35pm UTC](https://discuss.prometheus.io/t/build-prometheus-failed-from-source/88/1 "2021-03-24T12:35:56Z")

</div>

Run command: make build

OS: Ubuntu And Centos7  
Prometheus Version: tag v2.25.2

And i have no idea for how continue build prometheus,Thanks any help!!

error log:

```auto
    prometheus
cmd/go: -tags space-separated list contains comma
!! command failed: build -o /root/prometheus/prometheus -ldflags -X github.com/prometheus/common/version.Version=2.25.2 -X github.com/prometheus/common/version.Revision=bda05a23ada314a0b9806a362da39b7a1a4e04c3 -X github.com/prometheus/common/version.Branch=HEAD -X github.com/prometheus/common/version.BuildUser=root@smartwc.net -X github.com/prometheus/common/version.BuildDate=20210324-12:23:13 -extldflags '-static' -a -tags netgo,builtinassets .../prometheus/prometheus/cmd/prometheus: exit status 2
make: *** [common-build] Error 1
`
```

---

<div class="post-metadata">

**Author:** ![SuperQ](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.prometheus.io/superq/32/4_2.png) [@SuperQ](https://discuss.prometheus.io/u/SuperQ)\
**Post date:** [March 25, 2021, 4:49pm UTC](https://discuss.prometheus.io/t/build-prometheus-failed-from-source/88/2 "2021-03-25T16:49:34Z")

</div>

What version of Go do you have installed?

---

<div class="post-metadata">

**Author:** ![liangyuanpeng](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.prometheus.io/liangyuanpeng/32/68_2.png) [@liangyuanpeng](https://discuss.prometheus.io/u/liangyuanpeng)\
**Post date:** [June 18, 2021, 3:29am UTC](https://discuss.prometheus.io/t/build-prometheus-failed-from-source/88/3 "2021-06-18T03:29:38Z")

</div>

Sorry for my Late reply and I just build success on windows from `go build` and I forgot the Go version at the time. Thanks for your reply!
