When I run de command `
./scripts/cli/start_cli_testnet.sh
``
Compiling network v0.1.0 (/home/http-km/Documents/Libra/libra/network)
error: failed to run custom build command fornetwork v0.1.0 (/home/http-km/Documents/Libra/libra/network)`
Caused by:
process didn't exit successfully: /home/http-km/Documents/Libra/libra/target/debug/build/network-3bce66de4ba49a2b/build-script-build (exit code: 101)
--- stdout
cargo:rerun-if-changed=src/proto/network.proto
cargo:rerun-if-changed=src/proto/mempool.proto
cargo:rerun-if-changed=src/proto/consensus.proto
--- stderr
google/protobuf/wrappers.proto: File not found.
transaction.proto: Import "google/protobuf/wrappers.proto" was not found or had errors.
transaction.proto:160:5: "google.protobuf.UInt64Value" is not defined.
mempool.proto: Import "transaction.proto" was not found or had errors.
mempool.proto:17:12: "types.SignedTransaction" is not defined.
thread 'main' panicked at 'protoc: Custom { kind: Other, error: StringError("protoc (\"protoc\" \"-I../types/src/proto\" \"-Isrc/proto\" \"--descriptor_set_out=/tmp/protoc-rustPjKO2B/descriptor.pbbin\" \"--include_imports\" \"src/proto/network.proto\" \"src/proto/mempool.proto\" \"src/proto/consensus.proto\") exited with non-zero exit code") }', src/libcore/result.rs:999:5
note: Run with RUST_BACKTRACE=1 environment variable to display a backtrace.
warning: build failed, waiting for other jobs to finish...
error: build failed
```
Please complete the following information:
How can i fix this?
The command below helps
PROTOC_ZIP=protoc-3.7.1-linux-x86_64.zip
curl -OL https://github.com/google/protobuf/releases/download/v3.7.1/$PROTOC_ZIP
sudo unzip -o $PROTOC_ZIP -d /usr/local bin/protoc
sudo unzip -o $PROTOC_ZIP -d /usr/local include/*
rm -f $PROTOC_ZIP
@Rimay It looks like the latest protobuf https://github.com/protocolbuffers/protobuf/releases/download/v3.8.0/protoc-3.8.0-linux-x86_64.zip works as well.
Thanks for the help, solve it with the installation protobuf on my pc.
https://github.com/protocolbuffers/protobuf/blob/master/src/README.md
Most helpful comment
The command below helps
PROTOC_ZIP=protoc-3.7.1-linux-x86_64.zip
curl -OL https://github.com/google/protobuf/releases/download/v3.7.1/$PROTOC_ZIP
sudo unzip -o $PROTOC_ZIP -d /usr/local bin/protoc
sudo unzip -o $PROTOC_ZIP -d /usr/local include/*
rm -f $PROTOC_ZIP