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

Error with Protobuf installing during setup (protoc failed: Unknown flag: --experimental_allow_proto3_optional\n)

Open IgorSmailov opened this issue 1 year ago • 4 comments

Error with Protobuf installing during setup:

   Compiling nexus-network v0.4.0 (/root/.nexus/network-api/clients/cli)
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-a507b54e20e4ba46/build-script-build` (exit status: 1)
  --- stderr
  Error: Custom { kind: Other, error: "protoc failed: Unknown flag: --experimental_allow_proto3_optional\n" }

IgorSmailov avatar Dec 10 '24 08:12 IgorSmailov

Found Fix the issue:

Step 1: Remove Any Old Extracted Files If there are any leftover extracted files, let's clean them up first.

rm -rf protoc-3.12.0-linux-x86_64 Step 2: Re-Extract the Zip File Since the protoc-3.12.0-linux-x86_64.zip file is present, let's unzip it again.

unzip -o protoc-3.12.0-linux-x86_64.zip The -o flag will automatically overwrite any existing files without prompting.

Step 3: Verify the Contents Once you’ve extracted the files, check the contents of the extracted directory:

ls protoc-3.12.0-linux-x86_64 This should show the bin/ and include/ directories. If everything looks good, you should see something like this:

bin/ include/ readme.txt Step 4: Move the protoc Binary Now, move the protoc binary to /usr/local/bin/:

sudo mv protoc-3.12.0-linux-x86_64/bin/protoc /usr/local/bin/ Step 5: Move the Include Files Move the include/ directory files to /usr/local/include/:

sudo mv protoc-3.12.0-linux-x86_64/include/* /usr/local/include/ Step 6: Verify the Installation Finally, check that protoc is installed correctly:

protoc --version You should see: libprotoc 3.12.0 and start installation again.

IgorSmailov avatar Dec 10 '24 08:12 IgorSmailov

if didn't work as above method, then try #111

shipper96 avatar Dec 10 '24 15:12 shipper96

which apps I need to use this can you tell me please

RukonKholifa avatar Dec 10 '24 18:12 RukonKholifa

which apps I need to use this can you tell me please

just read #111 carefully, you will know how to solve this

shipper96 avatar Dec 11 '24 02:12 shipper96