[SOLVED] Protoc Buffer Issue:
Install Protocol Buffers (protoc)
Follow these steps to install Protocol Buffers on your system:
-
Download the protoc compiler:
Visit the Protocol Buffers GitHub releases page (https://github.com/protocolbuffers/protobuf/releases) and download the appropriate release for your system (e.g., Windows, macOS, or Linux). -
Extract and locate the files:
- Extract the downloaded archive to a convenient location (e.g.,
C:\Program Fileson Windows). - Inside the extracted folder, navigate to the
bindirectory whereprotoc.exeis located.
- Extract the downloaded archive to a convenient location (e.g.,
-
Add protoc to the system PATH:
- Copy the full directory path of the
binfolder containingprotoc.exe. - Open the Edit Environment Variables settings:
- Search for "Edit environment variables" in your system's search bar and open it.
- Under the System variables section, find and select
Path, then click Edit. - Click New, paste the directory path, and click OK to save the changes.
- Copy the full directory path of the
-
Install the protoc compiler in WSL (if applicable):
- Open your Windows Subsystem for Linux (WSL) terminal.
- Run the following command to install the Protocol Buffers compiler:
sudo apt install protobuf-compiler - Wait for the installation to complete.
-
Verify the installation:
- Open a new terminal or Command Prompt.
- Run the following command to ensure
protocis recognized:protoc --version - If the installation was successful, the version of the protoc compiler will be displayed.
-
Re-run the Nexus curl command:
After completing the installation, retry the Nexus curl command that requires Protocol Buffers.
Thanks for the report.
Related issue: https://github.com/nexus-xyz/network-api/issues/55
libprotoc 3.6.1 but still error:
error: failed to run custom build command for nexus-network v0.4.0 (/root/.nexus/network-api/clients/cli)
Caused by:
process didn't exit successfully: /root/.nexus/network-api/clients/cli/target/release/build/nexus-network-01d0541f667d1829/build-script-build (exit status: 1)
--- stderr
Error: Custom { kind: Other, error: "protoc failed: Unknown flag: --experimental_allow_proto3_optional\n" }
libprotoc 3.6.1 but still error:
error: failed to run custom build command for
nexus-network v0.4.0 (/root/.nexus/network-api/clients/cli)Caused by: process didn't exit successfully:
/root/.nexus/network-api/clients/cli/target/release/build/nexus-network-01d0541f667d1829/build-script-build(exit status: 1) --- stderr Error: Custom { kind: Other, error: "protoc failed: Unknown flag: --experimental_allow_proto3_optional\n" }
Have you been able to find a solution? I am getting the same error after installing protoc
libprotoc 3.6.1 but still error: error: failed to run custom build command for
nexus-network v0.4.0 (/root/.nexus/network-api/clients/cli)Caused by: process didn't exit successfully:/root/.nexus/network-api/clients/cli/target/release/build/nexus-network-01d0541f667d1829/build-script-build(exit status: 1) --- stderr Error: Custom { kind: Other, error: "protoc failed: Unknown flag: --experimental_allow_proto3_optional\n" }Have you been able to find a solution? I am getting the same error after installing protoc
I've been solved this. Solution here #111
libprotoc 3.6.1 but still error: error: failed to run custom build command for
nexus-network v0.4.0 (/root/.nexus/network-api/clients/cli)Caused by: process didn't exit successfully:/root/.nexus/network-api/clients/cli/target/release/build/nexus-network-01d0541f667d1829/build-script-build(exit status: 1) --- stderr Error: Custom { kind: Other, error: "protoc failed: Unknown flag: --experimental_allow_proto3_optional\n" }Have you been able to find a solution? I am getting the same error after installing protoc
I've been solved this. Solution here #111
after remove what next? still error
remove old protoc, then re-install as guide