-
Notifications
You must be signed in to change notification settings - Fork 11.3k
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
Sui Installation Error #16167
Comments
Thanks for flagging this @hrsh22. It looks like the error comes from the protobuf compiler.
Then try again. An alternative to using
If nothing works, please have a look at the docs and particularly at the prerequisites, and get back to me here with the rust version, the OS version, and other details you think could be useful for us to debug this. |
Hi @stefan-mysten , I am using Windows 11. Have already tried turning off windows defender and other versions of protocol buffers but nothing seems to work. |
@hrsh22 ok, let's see if you have everything needed installed. Could you confirm that you have protobuf compiler installed and you can call |
@stefan-mysten Yes, it is installed. C:\Users\harsh>protoc --version |
Great. It is on the path, right? Can you do a |
This might help rust-lang/cargo#11544 (comment) although it sounds like you've already done this. |
The interesting error there is telling us that access is denied to bin folder where protoc exists. My intuition says that cargo either confuses the paths to Perhaps this StackOverflow post could help too: https://stackoverflow.com/questions/76981763/rust-cargo-build-error-access-is-denied-os-error-5 |
Issue got solved! |
@hrsh22 happy to hear that things worked out in the end, and thanks for your persistence. |
after I ran: Resut: how do i solve this |
Hard to know why it failed without more information - could you attach the error logs? I assume you're installing from If you don't need to publish on devnet, try to install as per the docs: https://docs.sui.io/guides/developer/getting-started/sui-install |
okay I've downloaded as per the doc and it brought up a new error: warning: Caused by: |
Have you tried using the binaries instead of installing from source? https://github.com/MystenLabs/sui/releases/tag/testnet-v1.38.2 From the log I can only see a bunch of linking, so not really useful. Might be some dependencies that are missing. sudo apt-get update
sudo apt-get install curl git-all cmake gcc libssl-dev pkg-config libclang-dev build-essential |
okay sui has been installed. Thank you |
Steps to Reproduce Issue
after I ran:
cargo install --locked --git https://github.com/MystenLabs/sui.git --branch testnet sui
Result:
error: failed to run custom build command for
narwhal-types v0.1.0 (C:\Users\harsh\.cargo\git\checkouts\sui-6ac459c53b1b685a\673fcb2\narwhal\types)
Caused by:
process didn't exit successfully:
C:\Users\harsh\AppData\Local\Temp\cargo-install3Njyyh\release\build\narwhal-types-493f3c1afcce934e\build-script-build
(exit code: 1)--- stdout
cargo:rerun-if-changed=proto/narwhal.proto
cargo:rerun-if-changed=proto
--- stderr
Error: Custom { kind: PermissionDenied, error: "failed to invoke protoc (hint: https://docs.rs/prost-build/#sourcing-protoc): (path: "D:\\protoc\\bin"): Access is denied. (os error 5)" }
warning: build failed, waiting for other jobs to finish...
error: failed to compile
sui v1.18.0 (https://github.com/MystenLabs/sui.git?branch=testnet#673fcb2a)
, intermediate artifacts can be found atC:\Users\harsh\AppData\Local\Temp\cargo-install3Njyyh
.To reuse those artifacts with a future compilation, set the environment variable
CARGO_TARGET_DIR
to that path.The text was updated successfully, but these errors were encountered: