mirror of
https://github.com/fluencelabs/tendermint
synced 2025-05-29 14:11:21 +00:00
install protoc
This commit is contained in:
parent
bee7c5c7aa
commit
480e4e4444
18
Makefile
18
Makefile
@ -7,12 +7,22 @@ all: protoc install test
|
|||||||
|
|
||||||
PACKAGES=$(shell go list ./... | grep -v '/vendor/')
|
PACKAGES=$(shell go list ./... | grep -v '/vendor/')
|
||||||
|
|
||||||
install-protoc:
|
install_protoc:
|
||||||
# Download: https://github.com/google/protobuf/releases
|
# https://github.com/google/protobuf/releases
|
||||||
|
curl -L https://github.com/google/protobuf/releases/download/v3.4.1/protobuf-cpp-3.4.1.tar.gz | tar xvz && \
|
||||||
|
cd protobuf-cpp-3.4.1 && \
|
||||||
|
DIST_LANG=cpp ./configure && \
|
||||||
|
make && \
|
||||||
|
make install && \
|
||||||
|
cd .. && \
|
||||||
|
rm -rf protobuf-cpp-3.4.1
|
||||||
go get github.com/golang/protobuf/protoc-gen-go
|
go get github.com/golang/protobuf/protoc-gen-go
|
||||||
|
|
||||||
protoc:
|
protoc:
|
||||||
@ protoc --go_out=plugins=grpc:. types/*.proto
|
## On "error while loading shared libraries: libprotobuf.so.14: cannot open shared object file: No such file or directory"
|
||||||
|
## ldconfig (may require sudo)
|
||||||
|
## https://stackoverflow.com/a/25518702
|
||||||
|
protoc --go_out=plugins=grpc:. types/*.proto
|
||||||
|
|
||||||
install:
|
install:
|
||||||
@ go install ./cmd/...
|
@ go install ./cmd/...
|
||||||
@ -79,4 +89,4 @@ metalinter_test: tools
|
|||||||
#--enable=unparam \
|
#--enable=unparam \
|
||||||
#--enable=vet \
|
#--enable=vet \
|
||||||
|
|
||||||
.PHONY: all build test fmt get_deps tools
|
.PHONY: all build test fmt get_deps tools protoc install_protoc
|
||||||
|
Loading…
x
Reference in New Issue
Block a user