pingcap / homebrew-brew

Homebrew taps for TiDB
Apache License 2.0
5 stars 6 forks source link

Error while installing tidb-server #2

Closed aprasadh closed 5 years ago

aprasadh commented 5 years ago

I got the following error when installing tidb-server

guru@GURU-XCHAIN> brew install tidb-server
Updating Homebrew...
==> Installing tidb-server from pingcap/brew
==> Cloning https://github.com/pingcap/tidb.git
Updating /home/guru/.cache/Homebrew/tidb-server--git
==> Checking out tag v2.1.9
HEAD is now at 7eaea30 infoschema, domain, ddl: fix upper cased charset names (#10272) (#10354)
HEAD is now at 7eaea30 infoschema, domain, ddl: fix upper cased charset names (#10272) (#10354)
==> make server
Last 15 lines from /home/guru/.cache/Homebrew/Logs/tidb-server/01.make:
go: finding github.com/grpc-ecosystem/grpc-gateway v1.4.1
go: finding golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f
go: finding github.com/gogo/protobuf v1.1.1
go: finding go.uber.org/atomic v1.3.2
go: finding github.com/fsnotify/fsnotify v1.4.7
go: finding github.com/pingcap/pd v2.1.0-rc.4+incompatible
go: finding github.com/spaolacci/murmur3 v0.0.0-20150829172844-0d12bf811670
go: finding github.com/eknkc/amber v0.0.0-20171010120322-cdade1c07385
go: finding github.com/etcd-io/gofail v0.0.0-20180808172546-51ce9a71510a
go: finding github.com/grpc-ecosystem/go-grpc-prometheus v0.0.0-20160910222444-6b7015e65d36
go: finding github.com/cockroachdb/cmux v0.0.0-20170110192607-30d10be49292
go: finding golang.org/x/crypto v0.0.0-20180503215945-1f94bef427e3
go: error loading module requirements
Makefile:157: recipe for target 'server' failed
make: *** [server] Error 1

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
  https://github.com/pingcap/homebrew-brew/issues
gregwebs commented 5 years ago

Does this keep happening when you retry?

morgo commented 5 years ago

@aprasadh this error looks to be related to finding the correct module versions for dependencies (although I am not an expert on this).

We just bumped the installer to use TiDB 3.0 (which is designed to compile with the version of go supplied by homebrew and doesn't need a hack applied). Did you mind trying again?

aprasadh commented 5 years ago

The problem is solved. I suspect the primary reason is due to bitdefender firewall in windows. I built the tidb-server using WSL in windows. During the build, I frequently get Bitdefender firewall warnings. I think this caused the build error. After disabling the firewall, the build was successful.

Thanks.