Skip to content
This repository has been archived by the owner on Sep 2, 2023. It is now read-only.

Could not compile #4

Closed
okdistribute opened this issue Aug 24, 2020 · 2 comments
Closed

Could not compile #4

okdistribute opened this issue Aug 24, 2020 · 2 comments

Comments

@okdistribute
Copy link

okdistribute commented Aug 24, 2020

Hi, I tried to get started but had an issue with cargo :

okdistribute ~/dev/dc40
$ cargo run -p dc40-backend --release
error: the 'cargo' binary, normally provided by the 'cargo' component, is not applicable to the '1.45.0-x86_64-unknown-linux-gnu' toolchain
okdistribute ~/dev/dc40
$ rustup show
Default host: x86_64-unknown-linux-gnu
rustup home:  /home/okdistribute/.rustup

installed toolchains
--------------------

stable-x86_64-unknown-linux-gnu (default)
nightly-x86_64-unknown-linux-gnu
1.45.0-x86_64-unknown-linux-gnu

active toolchain
----------------

1.45.0-x86_64-unknown-linux-gnu (overridden by '/home/okdistribute/dev/dc40/rust-toolchain')
rustc 1.45.0 (5c1f21c3b 2020-07-13)
okdistribute ~/dev/dc40
$ rustup component add cargo
info: component 'cargo' for target 'x86_64-unknown-linux-gnu' is up to date

I looked around for a few minutes on stack overflow but couldn't find any related issues yet; will sleep on it and come back later, but perhaps there's a quick fix I'm missing?

@dignifiedquire
Copy link
Member

I have seen this error before, and unfortunately the only fix that I had in the past was to wipe the rustup installation.

@okdistribute
Copy link
Author

Thanks @dignifiedquire. Closing this. If others come into this issue, I fixed this with

rustup uninstall 1.45.0
cargo

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

No branches or pull requests

2 participants