You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Going through the embedonimicon, I tried to install cargo-binutils, forgetting I already had it installed, but the install failed.
Steps
have cargo-binutils 0.1.5 installed
running cargo install cargo-binutils results in an error, which seems suggesting a wrong solution:
eddy@feodora:~/usr/src/rust$ cargo install cargo-binutils
Updating crates.io index
Downloaded cargo-binutils v0.1.6
Downloaded 1 crates (17.9 KB) in 1.56s
Installing cargo-binutils v0.1.6
error: binary `cargo-nm` already exists in destination as part of `cargo-binutils v0.1.5`
binary `cargo-objcopy` already exists in destination as part of `cargo-binutils v0.1.5`
binary `cargo-objdump` already exists in destination as part of `cargo-binutils v0.1.5`
binary `cargo-profdata` already exists in destination as part of `cargo-binutils v0.1.5`
binary `cargo-readobj` already exists in destination as part of `cargo-binutils v0.1.5`
binary `cargo-size` already exists in destination as part of `cargo-binutils v0.1.5`
binary `cargo-strip` already exists in destination as part of `cargo-binutils v0.1.5`
Add --force to overwrite
If I uninstall first cargo-binutils, then try again, everything works:
I'm not sure I understand this issue. It is suggesting adding the --force flag which should work. Did it not work?
I would have expected that cargo would have upgraded the cargo-binutils package instead of suggesting --force, which I suspect might be dangerous or might have ill effects. So I'd say it should have uninstalled the old and installed the new, instead of suggesting --force.
Problem
Going through the embedonimicon, I tried to install cargo-binutils, forgetting I already had it installed, but the install failed.
Steps
cargo install cargo-binutils
results in an error, which seems suggesting a wrong solution:If I uninstall first cargo-binutils, then try again, everything works:
Possible Solution(s)
Notes
Output of
cargo version
:cargo 1.32.0 (8610973 2019-01-02)
The text was updated successfully, but these errors were encountered: