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

while installing stellar-cli Error : can't find crate for hyper #1399

Closed
happylucktoday opened this issue Jun 24, 2024 · 8 comments
Closed
Labels
bug Something isn't working

Comments

@happylucktoday
Copy link

What I did

I was installing stellar-cli
I used command cargo install --locked stellar-cli
while it is compiling I faced an error:
error[E0463]: can't find crate for hyper
and so many errors related with 'hyper'
I don't understand what issue there is.
Uploading Screenshot_95.png…

@happylucktoday happylucktoday added the bug Something isn't working label Jun 24, 2024
@github-project-automation github-project-automation bot moved this to Backlog in DevX Jun 24, 2024
@willemneal
Copy link
Member

Thanks for letting us know.

Does the following work?


cargo install --locked cargo-binstall
cargo binstall -y stellar-cli

Also
What OS are you on?

@janewang
Copy link
Contributor

rustc --explain E0463

A crate was declared but cannot be found.
extern crate foo; // error: can't find crate

You need to link your code to the relevant crate in order to be able to use it (through
Cargo or the -L option of rustc, for example).

Common causes

  • The crate is not present at all. If using Cargo, add it to [dependencies]
    in Cargo.toml.
  • The crate is present, but under a different name. If using Cargo, look for package
    = under [dependencies] in Cargo.toml.

Common causes for missing std or core

  • You are cross-compiling for a target
    which doesn't have std prepackaged. Consider one of the following: + Adding
    a pre-compiled version of std with rustup target add + Building std from
    source with cargo build -Z build-std + Using #![no_std] at the crate root,
    so you won't need std in the first place.
  • You are developing the compiler itself and haven't built libstd from source. You
    can usually build it with x.py build library/std. More information about
    x.py is available in the rustc-dev-guide.

@happylucktoday
Copy link
Author

I am using windows 10
When I try install, it works.
I tried a hello-world project on soroban test net
It works once, then doesn't work.
If I try several times, it is working well, then does not work
What is the issue?
Is is related with upload/download speed?
I tried on VPS, but I can not install rust
Please help me

@willemneal
Copy link
Member

So the install is working, but when using the CLI it fails?

If so what errors are you getting?

@janewang
Copy link
Contributor

So on your Windows 10, you have rust and the project is working. Worst case, you can remove the current hello-world project and restart here https://developers.stellar.org/docs/build/smart-contracts/getting-started/hello-world.

For the VPS, not sure why you cannot install rust and not sure what the OS is, but you could check try this way: https://www.rust-lang.org/tools/install

@happylucktoday
Copy link
Author

So the install is working, but when using the CLI it fails?

If so what errors are you getting?

Can we have a discussion about stellar on discord?

@happylucktoday
Copy link
Author

So on your Windows 10, you have rust and the project is working. Worst case, you can remove the current hello-world project and restart here https://developers.stellar.org/docs/build/smart-contracts/getting-started/hello-world.

For the VPS, not sure why you cannot install rust and not sure what the OS is, but you could check try this way: https://www.rust-lang.org/tools/install

Can we have a discussion about stellar on discord?
My id is @topmount2024

@leighmcculloch
Copy link
Member

@happylucktoday There's an ongoing discussion about this issue on Discord here:

As the issue appears to be environmental (i.e. caused by the system setup) I'm going to close the issue as it doesn't sound like a problem with the CLI itself. If it turns out that was the wrong call we can reopen this issue or a new issue.

@leighmcculloch leighmcculloch closed this as not planned Won't fix, can't repro, duplicate, stale Jul 12, 2024
@github-project-automation github-project-automation bot moved this from Backlog to Done in DevX Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

No branches or pull requests

4 participants