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

[SOLVED] Protoc Buffer Issue:

Open 0xCipherNinja opened this issue 1 year ago • 6 comments

Install Protocol Buffers (protoc)

Follow these steps to install Protocol Buffers on your system:

  1. 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).

  2. Extract and locate the files:

    • Extract the downloaded archive to a convenient location (e.g., C:\Program Files on Windows).
    • Inside the extracted folder, navigate to the bin directory where protoc.exe is located.
  3. Add protoc to the system PATH:

    • Copy the full directory path of the bin folder containing protoc.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.
  4. 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.
  5. Verify the installation:

    • Open a new terminal or Command Prompt.
    • Run the following command to ensure protoc is recognized:
      protoc --version
      
    • If the installation was successful, the version of the protoc compiler will be displayed.
  6. Re-run the Nexus curl command:
    After completing the installation, retry the Nexus curl command that requires Protocol Buffers.

0xCipherNinja avatar Dec 06 '24 09:12 0xCipherNinja

Thanks for the report.

Related issue: https://github.com/nexus-xyz/network-api/issues/55

collinjackson avatar Dec 06 '24 13:12 collinjackson

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" }

shipper96 avatar Dec 10 '24 04:12 shipper96

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

Ebenezary avatar Dec 10 '24 11:12 Ebenezary

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

shipper96 avatar Dec 11 '24 02:12 shipper96

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

hanadiana258 avatar Dec 11 '24 05:12 hanadiana258

remove old protoc, then re-install as guide

shipper96 avatar Dec 11 '24 08:12 shipper96