Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: failed to run custom build command for prost-build v0.6.1 #1781

Closed
LukasRada opened this issue Apr 29, 2020 · 8 comments
Closed

error: failed to run custom build command for prost-build v0.6.1 #1781

LukasRada opened this issue Apr 29, 2020 · 8 comments

Comments

@LukasRada
Copy link

Describe the bug
Running cargo build --release command ends with error:

error: failed to run custom build command for `prost-build v0.6.1`

Caused by:
  process didn't exit successfully: `/root/tari/target/release/build/prost-build-567322a74cee75bf/build-script-build` (exit code: 101)
--- stderr
thread 'main' panicked at 'Failed to find the protoc binary. The PROTOC environment variable is not set, there is no bundled protoc for this platform, and protoc is not in the PATH', src/libcore/option.rs:1188:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.

To Reproduce
Steps to reproduce the behavior:

  1. Clone default branch (development)
  2. Run command cargo build --release

Expected behavior
Successfully build app

Machine:

lscpu
Architecture:        armv7l
Byte Order:          Little Endian
CPU(s):              8
On-line CPU(s) list: 0-7
Thread(s) per core:  1
Core(s) per socket:  4
Socket(s):           2
Vendor ID:           ARM
Model:               3
Model name:          Cortex-A7
Stepping:            r0p3
CPU max MHz:         2000.0000
CPU min MHz:         200.0000
BogoMIPS:            12.00
Flags:               half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae

OS: Ubuntu 18.04.4 LTS (Bionic Beaver)

@CjS77
Copy link
Collaborator

CjS77 commented May 4, 2020

@sdbondi - Is this fixed by #1790 ?

@sdbondi
Copy link
Member

sdbondi commented May 4, 2020

@CjS77 Nope - this error is because the protoc binary is not installed. Instructions for apt were PRd here: #1800

@LukasRada try

apt install libprotobuf-dev protobuf-compiler

@CjS77
Copy link
Collaborator

CjS77 commented May 4, 2020

Ok, thanks @sdbondi.

I'm going to close this since the solution is already present.

@Zeus-Adin
Copy link

thanks @sdbondi, very helpful

@ekomic
Copy link

ekomic commented Oct 7, 2022

apt install libprotobuf-dev protobuf-compiler

this did not work for me

@delta1
Copy link
Contributor

delta1 commented Oct 7, 2022

@ekomic make a new issue posting the error message you are getting

@ashWhiteHat
Copy link

I use alpine and fix with.

apk add protoc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants
@delta1 @sdbondi @LukasRada @CjS77 @ekomic @ashWhiteHat @Zeus-Adin and others