nexus-cli icon indicating copy to clipboard operation
nexus-cli copied to clipboard

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

Open Giangr2812 opened this issue 1 year ago • 5 comments

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

Giangr2812 avatar Dec 11 '24 12:12 Giangr2812

Fixed for me after installing protobuf (Ubuntu 22.04):

sudo apt update
sudo apt install -y protobuf-compiler

c0nf1g avatar Dec 11 '24 13:12 c0nf1g

Fixed for me after installing protobuf (Ubuntu 22.04):

sudo apt update
sudo apt install -y protobuf-compiler

macos bro

Giangr2812 avatar Dec 11 '24 13:12 Giangr2812

macos bro

Then install it with brew

brew install protobuf

c0nf1g avatar Dec 11 '24 13:12 c0nf1g

On Windows Download protoc from the Official Releases:

Go to the Protocol Buffers Releases page. Download the appropriate release for Windows (protoc--win64.zip). Extract the contents and place them in a directory (e.g., C:\Protobuf). Add protoc to PATH:

Open Environment Variables. Add the directory containing protoc.exe to your PATH.

JideijeEmeka avatar Dec 12 '24 08:12 JideijeEmeka

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>
image

the fix is:

rm -rf /usr/local/Homebrew/Library/Taps/homebrew/stable/homebrew-core
git clone https://github.com/Homebrew/homebrew-core.git

WesleyQ avatar Dec 13 '24 06:12 WesleyQ