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

Open LayVilla05 opened this issue 1 year ago • 9 comments

Compiling nexus-network v0.4.0 (C:\Users\layvi.nexus\network-api\clients\cli) The following warnings were emitted during compilation:

warning: [email protected]: Failed to run protoc: program not found

error: failed to run custom build command for nexus-network v0.4.0 (C:\Users\layvi\.nexus\network-api\clients\cli)

Caused by: process didn't exit successfully: C:\Users\layvi\.nexus\network-api\clients\cli\target\release\build\nexus-network-a3fffeb85525b117\build-script-build (exit code: 1) --- stdout cargo:warning=Failed to run protoc: program not found

--- stderr Error: Error { kind: NotFound, message: "program not found" } curl: (6) Could not resolve host: sh

LayVilla05 avatar Dec 10 '24 18:12 LayVilla05

It looks like you are running this program directly in Windows. You should try installing and running it again through WSL (Windows Subsystem for Linux). You can follow the official guide at: https://learn.microsoft.com/en-us/windows/wsl/install.

Mantodkaz avatar Dec 10 '24 22:12 Mantodkaz

My server is running on linux, ubuntu 22.04. I have the same problem. What could be the solution to the problem?

Ahnetdd avatar Dec 11 '24 00:12 Ahnetdd

My server is running on linux, ubuntu 22.04. I have the same problem. What could be the solution to the problem?

have you installed this package before? apt install protobuf-compiler -y

If it still doesn't work, Install New Version of Protoc Manually curl -LO https://github.com/protocolbuffers/protobuf/releases/download/v21.12/protoc-21.12-linux-x86_64.zip unzip protoc-21.12-linux-x86_64.zip -d /usr/local/protoc echo 'export PATH=/usr/local/protoc/bin:$PATH' >> ~/.bashrc source ~/.bashrc

try it, and run again. good luck

Mantodkaz avatar Dec 11 '24 00:12 Mantodkaz

Yes. After installing this package the problem is solved. Thanks for the reply.

Ahnetdd avatar Dec 11 '24 00:12 Ahnetdd

My server is running on linux, ubuntu 22.04. I have the same problem. What could be the solution to the problem?

have you installed this package before? apt install protobuf-compiler -y

If it still doesn't work, Install New Version of Protoc Manually curl -LO https://github.com/protocolbuffers/protobuf/releases/download/v21.12/protoc-21.12-linux-x86_64.zip unzip protoc-21.12-linux-x86_64.zip -d /usr/local/protoc echo 'export PATH=/usr/local/protoc/bin:$PATH' >> ~/.bashrc source ~/.bashrc

try it, and run again. good luck

I'm using macos sonoma 14.7 and it has an error that doesn't work

Giangr2812 avatar Dec 11 '24 11:12 Giangr2812

My server is running on linux, ubuntu 22.04. I have the same problem. What could be the solution to the problem?

have you installed this package before? apt install protobuf-compiler -y If it still doesn't work, Install New Version of Protoc Manually curl -LO https://github.com/protocolbuffers/protobuf/releases/download/v21.12/protoc-21.12-linux-x86_64.zip unzip protoc-21.12-linux-x86_64.zip -d /usr/local/protoc echo 'export PATH=/usr/local/protoc/bin:$PATH' >> ~/.bashrc source ~/.bashrc try it, and run again. good luck

I'm using macos sonoma 14.7 and it has an error that doesn't work

for macos you can try use this version curl -LO https://github.com/protocolbuffers/protobuf/releases/download/v21.12/protoc-21.12-osx-x86_64.zip unzip protoc-21.12-osx-x86_64.zip -d /usr/local/protoc echo 'export PATH=/usr/local/protoc/bin:$PATH' >> ~/.zshrc source ~/.zshrc chmod +x /usr/local/protoc/bin/protoc

Mantodkaz avatar Dec 11 '24 12:12 Mantodkaz

My server is running on linux, ubuntu 22.04. I have the same problem. What could be the solution to the problem?

have you installed this package before? apt install protobuf-compiler -y If it still doesn't work, Install New Version of Protoc Manually curl -LO https://github.com/protocolbuffers/protobuf/releases/download/v21.12/protoc-21.12-linux-x86_64.zip unzip protoc-21.12-linux-x86_64.zip -d /usr/local/protoc echo 'export PATH=/usr/local/protoc/bin:$PATH' >> ~/.bashrc source ~/.bashrc try it, and run again. good luck

I'm using macos sonoma 14.7 and it has an error that doesn't work

for macos you can try use this version curl -LO https://github.com/protocolbuffers/protobuf/releases/download/v21.12/protoc-21.12-osx-x86_64.zip unzip protoc-21.12-osx-x86_64.zip -d /usr/local/protoc echo 'export PATH=/usr/local/protoc/bin:$PATH' >> ~/.zshrc source ~/.zshrc chmod +x /usr/local/protoc/bin/protoc tôi đang chạy và bị lỗi như vậy Archive: protoc-21.12-osx-x86_64.zip checkdir: cannot create extraction directory: /usr/local/protoc Permission denied

Giangr2812 avatar Dec 11 '24 12:12 Giangr2812

My server is running on linux, ubuntu 22.04. I have the same problem. What could be the solution to the problem?

have you installed this package before? apt install protobuf-compiler -y If it still doesn't work, Install New Version of Protoc Manually curl -LO https://github.com/protocolbuffers/protobuf/releases/download/v21.12/protoc-21.12-linux-x86_64.zip unzip protoc-21.12-linux-x86_64.zip -d /usr/local/protoc echo 'export PATH=/usr/local/protoc/bin:$PATH' >> ~/.bashrc source ~/.bashrc try it, and run again. good luck

I'm using macos sonoma 14.7 and it has an error that doesn't work

for macos you can try use this version curl -LO https://github.com/protocolbuffers/protobuf/releases/download/v21.12/protoc-21.12-osx-x86_64.zip unzip protoc-21.12-osx-x86_64.zip -d /usr/local/protoc echo 'export PATH=/usr/local/protoc/bin:$PATH' >> ~/.zshrc source ~/.zshrc chmod +x /usr/local/protoc/bin/protoc

i am running and it shows error like this image

Giangr2812 avatar Dec 11 '24 12:12 Giangr2812

My server is running on linux, ubuntu 22.04. I have the same problem. What could be the solution to the problem?

have you installed this package before? apt install protobuf-compiler -y

If it still doesn't work, Install New Version of Protoc Manually curl -LO protocolbuffers/protobuf@v21.12 protoc-21.12-linux-x86_64.zip (download) unzip protoc-21.12-linux-x86_64.zip -d /usr/local/protoc echo 'export PATH=/usr/local/protoc/bin:$PATH' >> ~/.bashrc source ~/.bashrc

try it, and run again. good luck

Thanks this helped!

mannyanebi avatar Dec 11 '24 15:12 mannyanebi