boxdot / gurk-rs

Signal Messenger client for terminal
GNU Affero General Public License v3.0
440 stars 33 forks source link

error: failed to run custom build command for `libsignal-protocol v0.1.0 (https://github.com/signalapp/libsignal?tag=v0.40.1#f980fccd)` #293

Closed DarthRevan501st closed 2 weeks ago

DarthRevan501st commented 2 weeks ago

So I've been trying to compile gurk according to the cargo instructions on my gentoo system. And I keep getting the following errors

error: failed to run custom build command for `libsignal-protocol v0.1.0 (https://github.com/signalapp/libsignal?tag=v0.40.1#f980fccd)`

Caused by:
  process didn't exit successfully: `/tmp/cargo-installg6ijCv/release/build/libsignal-protocol-17f2df72444ed942/build-script-build` (exit status: 101)
  --- stderr
  thread 'main' panicked at /home/willard/.cargo/git/checkouts/libsignal-e5ca3c64ee2f7cbe/f980fcc/rust/protocol/build.rs:18:10:
  Protobufs in src are valid: Custom { kind: NotFound, error: "Could not find `protoc`. If `protoc` is installed, try setting the `PROTOC` environment variable to the path of the `protoc` binary. To install it on Debian, run `apt-get install protobuf-compiler`. It is also available at https://github.com/protocolbuffers/protobuf/releases  For more information: https://docs.rs/prost-build/#sourcing-protoc" }
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: failed to compile `gurk v0.4.3 (https://github.com/boxdot/gurk-rs#e0084e8b)`, intermediate artifacts can be found at `/tmp/cargo-installg6ijCv`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.

Looks like something in the build script needs updating, but I'm not a rust programmer.

boxdot commented 2 weeks ago

You need to install the protoc binary. I am not a Gentoo users, so I can't tell how to do it.

DarthRevan501st commented 2 weeks ago

You need to install the protoc binary. I am not a Gentoo users, so I can't tell how to do it.

Where is the repo for the project?

boxdot commented 2 weeks ago

https://github.com/protocolbuffers/protobuf?tab=readme-ov-file#protobuf-compiler-installation

DarthRevan501st commented 2 weeks ago

https://github.com/protocolbuffers/protobuf?tab=readme-ov-file#protobuf-compiler-installation

That seems to of fixed the problem. Thank you!