diem: [Bug]error: failed to run custom build command for grpcio-sys v0.4.4
I met the next error after i excute the third command:“./scripts/cli/start_cli_testnet.sh”. The error information as follows:
system: CentOS 7
Building and running client in debug mode.
Compiling grpcio-sys v0.4.4
Compiling network v0.1.0 (/root/libra/network)
Compiling proto_conv v0.1.0 (/root/libra/common/proto_conv)
Compiling types v0.1.0 (/root/libra/types)
Compiling storage_proto v0.1.0 (/root/libra/storage/storage_proto)
Compiling mempool v0.1.0 (/root/libra/mempool)
Compiling admission_control_proto v0.1.0 (/root/libra/admission_control/admission_control_proto)
error: failed to run custom build command for `grpcio-sys v0.4.4`
Caused by:
process didn't exit successfully: `/root/libra/target/debug/build/grpcio-sys-18712f499919ddc1/build-script-build` (exit code: 101)
--- stdout
cargo:rerun-if-changed=grpc_wrap.cc
cargo:rerun-if-changed=grpc
cargo:rerun-if-env-changed=GRPCIO_SYS_USE_PKG_CONFIG
cargo:rerun-if-env-changed=CARGO_CFG_TARGET_OS
running: "cmake" "/root/.cargo/registry/src/github.com-1ecc6299db9ec823/grpcio-sys-0.4.4/grpc" "-DgRPC_INSTALL=false" "-DgRPC_BUILD_CSHARP_EXT=false" "-DgRPC_BUILD_CODEGEN=false" "-DgRPC_BENCHMARK_PROVIDER=none" "-DCMAKE_INSTALL_PREFIX=/root/libra/target/debug/build/grpcio-sys-c998cb3e25589d95/out" "-DCMAKE_C_FLAGS= -ffunction-sections -fdata-sections -fPIC -m64" "-DCMAKE_C_COMPILER=/bin/cc" "-DCMAKE_CXX_FLAGS= -ffunction-sections -fdata-sections -fPIC -m64" "-DCMAKE_CXX_COMPILER=/bin/c++" "-DCMAKE_BUILD_TYPE=Debug"
--- stderr
thread 'main' panicked at '
failed to execute command: No such file or directory (os error 2)
is `cmake` not installed?
build script failed, must exit now', /root/.cargo/registry/src/github.com-1ecc6299db9ec823/cmake-0.1.40/src/lib.rs:832:5
note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
warning: build failed, waiting for other jobs to finish...
error: failed to run custom build command for `network v0.1.0 (/root/libra/network)`
Caused by:
process didn't exit successfully: `/root/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
thread 'main' panicked at 'protoc: Custom { kind: NotFound, error: StringError("failed to spawn `\"protoc\" \"--version\"`: No such file or directory (os error 2)") }', 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: failed to run custom build command for `proto_conv v0.1.0 (/root/libra/common/proto_conv)`
Caused by:
process didn't exit successfully: `/root/libra/target/debug/build/proto_conv-e90bb38ecfb7c112/build-script-build` (exit code: 101)
--- stdout
cargo:rerun-if-changed=tests/proto/test.proto
--- stderr
thread 'main' panicked at 'Failed to compile protobuf input: "tests/proto/test.proto"', common/build_helpers/src/build_helpers.rs:60:29
note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
warning: build failed, waiting for other jobs to finish...
error: failed to run custom build command for `types v0.1.0 (/root/libra/types)`
Caused by:
process didn't exit successfully: `/root/libra/target/debug/build/types-890c226c8fb836c7/build-script-build` (exit code: 101)
--- stdout
cargo:rerun-if-changed=src/proto/access_path.proto
--- stderr
thread 'main' panicked at 'Failed to compile protobuf input: "src/proto/access_path.proto"', common/build_helpers/src/build_helpers.rs:60:29
note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
warning: build failed, waiting for other jobs to finish...
error: failed to run custom build command for `mempool v0.1.0 (/root/libra/mempool)`
Caused by:
process didn't exit successfully: `/root/libra/target/debug/build/mempool-e30338c93f591351/build-script-build` (exit code: 101)
--- stdout
cargo:rerun-if-changed=src/proto/shared/mempool_status.proto
--- stderr
thread 'main' panicked at 'Failed to compile protobuf input: "src/proto/shared/mempool_status.proto"', common/build_helpers/src/build_helpers.rs:60:29
note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
warning: build failed, waiting for other jobs to finish...
error: failed to run custom build command for `storage_proto v0.1.0 (/root/libra/storage/storage_proto)`
Caused by:
process didn't exit successfully: `/root/libra/target/debug/build/storage_proto-e57e3c9e426985c3/build-script-build` (exit code: 101)
--- stdout
cargo:rerun-if-changed=../../types/src/proto/access_path.proto
--- stderr
thread 'main' panicked at 'Failed to compile protobuf input: "../../types/src/proto/access_path.proto"', common/build_helpers/src/build_helpers.rs:60:29
note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
warning: build failed, waiting for other jobs to finish...
error: failed to run custom build command for `admission_control_proto v0.1.0 (/root/libra/admission_control/admission_control_proto)`
Caused by:
process didn't exit successfully: `/root/libra/target/debug/build/admission_control_proto-d741184a6093a7c5/build-script-build` (exit code: 101)
--- stdout
cargo:rerun-if-changed=../../types/src/proto/access_path.proto
--- stderr
thread 'main' panicked at 'Failed to compile protobuf input: "../../types/src/proto/access_path.proto"', common/build_helpers/src/build_helpers.rs:60:29
note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 15 (5 by maintainers)
See
in the error message. Please install
cmake.Ok… this is the link you want with how to instal libra!!!
https://blog.cotten.io/deploying-the-libra-core-blockchain-currency-on-amazon-ec2-f832d4bfadc8