failed to run custom build command for `nexus-network v0.4.0 (/Users/admin/.nexus/network-api/clients/cli)` Caused by: process didn't exit successfully: `/Users/admin/.nexus/network-api/clients/cli/target/release/build/nexus-network-b9098be9342c089f/build-script-build` (exit status: 1) --- stdout cargo:warning=Failed to run protoc: No such file or directory (os error 2) --- stderr Error: Os { code: 2, kind: NotFound, message: "No such file or directory
failed to run custom build command for nexus-network v0.4.0 (/Users/admin/.nexus/network-api/clients/cli)
Caused by:
process didn't exit successfully: /Users/admin/.nexus/network-api/clients/cli/target/release/build/nexus-network-b9098be9342c089f/build-script-build (exit status: 1)
--- stdout
cargo:warning=Failed to run protoc: No such file or directory (os error 2)
--- stderr Error: Os { code: 2, kind: NotFound, message: "No such file or directory
Fixed for me after installing protobuf (Ubuntu 22.04):
sudo apt update
sudo apt install -y protobuf-compiler
Fixed for me after installing protobuf (Ubuntu 22.04):
sudo apt update sudo apt install -y protobuf-compiler
macos bro
macos bro
Then install it with brew
brew install protobuf
On Windows Download protoc from the Official Releases:
Go to the Protocol Buffers Releases page.
Download the appropriate release for Windows (protoc-
Open Environment Variables. Add the directory containing protoc.exe to your PATH.
macos bro
Then install it with brew
brew install protobuf
on macOS, you probably got the error below.
Error: An exception occurred within a child process:
FormulaUnreadableError: cmake: undefined method `cellar' for #<BottleSpecification:0x00007f8902969a78>
the fix is:
rm -rf /usr/local/Homebrew/Library/Taps/homebrew/stable/homebrew-core
git clone https://github.com/Homebrew/homebrew-core.git