diff --git a/Makefile b/Makefile index 6d81019df21..29b6fd12b7d 100644 --- a/Makefile +++ b/Makefile @@ -98,6 +98,13 @@ dbg: @cd ./cmd/$* && $(GOBUILD) -o $(GOBIN)/$* @echo "Run \"$(GOBIN)/$*\" to launch $*." +build-libs: +ifeq ($(UNAME), Darwin ) + @brew install libomp gmp +else ifeq ($(UNAME), Linux ) + @sudo apt install libgtest-dev libomp-dev libgmp-dev +endif + ## erigon: build erigon zkevm-erigon: go-version zkevm-erigon.cmd @rm -f $(GOBIN)/tg # Remove old binary to prevent confusion where users still use it because of the scripts diff --git a/README.md b/README.md index 973c28b6bd9..292dd0dcd62 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,8 @@ Please install: - Linux: `libgtest-dev` `libomp-dev` `libgmp-dev` - MacOS: `brew install libomp` `brew install gmp` +Using the Makefile command: `make build-libs` will install these for the relevant architecture. + ## zkevm-specific API Support In order to enable the zkevm_ namespace, please add 'zkevm' to the http.api flag (see the example config below).