Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failed to run custom build command #11

Open
tomnick opened this issue Mar 10, 2023 · 2 comments
Open

failed to run custom build command #11

tomnick opened this issue Mar 10, 2023 · 2 comments

Comments

@tomnick
Copy link

tomnick commented Mar 10, 2023

hi, at the step "Compile nostr-rs" I am getting the following error:

error: failed to run custom build command for nostr-rs-relay v0.8.8 (/opt/nostr-rs-relay)`

Caused by:
process didn't exit successfully: /opt/nostr-rs-relay/target/release/build/nostr-rs-relay-e52fd45d8c8d75ad/build-script-build (exit status: 1)
--- stdout
cargo:rerun-if-changed=proto/nauthz.proto
cargo:rerun-if-changed=proto

--- stderr
Error: Custom { kind: Other, error: "protoc failed: Unknown flag: --experimental_allow_proto3_optional\n" }

`
I did follow the guide, my system Ubuntu 20.04

@BlockChainCaffe
Copy link
Owner

Hi Tomnic.
This error concerns the compilation of nostr-rs-relay, while this guide only focuses on how to use that for building your own node.
I just found this in the rust documentation so it seems the compile saw some unexpected changes in the folder/filesystem while it was compiling.
I sugest you ask this to the devs of nostr-rs-relay as I'm not able to answer you. If you find an aswer pleass come back and explai it to su so we can add this useful info in the guide

@tomnick
Copy link
Author

tomnick commented Mar 12, 2023

Alright, here is the solution as far as I did it:
The protobuf compiler is too old. I installed protoc via https://lindevs.com/install-protoc-on-ubuntu. Now, the compilation ist running thorugh. Do not forget this was on Ubuntu.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants