微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

安装 Subkey 时出错Substrate Developer Hub

如何解决安装 Subkey 时出错Substrate Developer Hub

我是基板和编程的新手,在尝试安装子密钥以生成节点的一些密钥时,我经常遇到同样的错误。我已尝试按照 Substrate Developer Hub 中的步骤安装子项,但无法完成安装。错误如下:

error[E0034]: multiple applicable items in scope
--> /home/centifuge/.cargo/registry/src/github.com-1ecc6299db9ec823/bitvec-0.20.1/src/mem.rs:51:25
|
51 | const MASK: u8 = Self::BITS - 1;
| ^^^^ multiple BITS found
|
note: candidate #1 is defined in the trait BitMemory
--> /home/centifuge/.cargo/registry/src/github.com-1ecc6299db9ec823/bitvec-0.20.1/src/mem.rs:44:2
|
44 | const BITS: u8 = mem::size_of::() as u8 * 8;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: candidate #2 is defined in the trait IsNumber
--> /home/centifuge/.cargo/registry/src/github.com-1ecc6299db9ec823/funty-1.2.0/src/lib.rs:144:2
|
144 | const BITS: u32;
| ^^^^^^^^^^^^^^^^
help: disambiguate the associated constant for candidate #1
|
51 | const MASK: u8 = BitMemory::BITS - 1;
| ^^^^^^^^^^^^^^^
help: disambiguate the associated constant for candidate #2
|
51 | const MASK: u8 = IsNumber::BITS - 1;
| ^^^^^^^^^^^^^^

error[E0034]: multiple applicable items in scope
--> /home/centifuge/.cargo/registry/src/github.com-1ecc6299db9ec823/bitvec-0.20.1/src/order.rs:291:15
|
291 | if ct == R::BITS {
| ^^^^ multiple BITS found
|
note: candidate #1 is defined in the trait BitMemory
--> /home/centifuge/.cargo/registry/src/github.com-1ecc6299db9ec823/bitvec-0.20.1/src/mem.rs:44:2
|
44 | const BITS: u8 = mem::size_of::() as u8 * 8;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: candidate #2 is defined in the trait IsNumber
--> /home/centifuge/.cargo/registry/src/github.com-1ecc6299db9ec823/funty-1.2.0/src/lib.rs:144:2
|
144 | const BITS: u32;
| ^^^^^^^^^^^^^^^^
help: disambiguate the associated constant for candidate #1
|
291 | if ct == BitMemory::BITS {
| ^^^^^^^^^^^^^^^
help: disambiguate the associated constant for candidate #2
|
291 | if ct == IsNumber::BITS {
| ^^^^^^^^^^^^^^

error[E0034]: multiple applicable items in scope
--> /home/centifuge/.cargo/registry/src/github.com-1ecc6299db9ec823/bitvec-0.20.1/src/order.rs:339:15
|
339 | if ct == R::BITS {
| ^^^^ multiple BITS found
|
note: candidate #1 is defined in the trait BitMemory
--> /home/centifuge/.cargo/registry/src/github.com-1ecc6299db9ec823/bitvec-0.20.1/src/mem.rs:44:2
|
44 | const BITS: u8 = mem::size_of::() as u8 * 8;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: candidate #2 is defined in the trait IsNumber
--> /home/centifuge/.cargo/registry/src/github.com-1ecc6299db9ec823/funty-1.2.0/src/lib.rs:144:2
|
144 | const BITS: u32;
| ^^^^^^^^^^^^^^^^
help: disambiguate the associated constant for candidate #1
|
339 | if ct == BitMemory::BITS {
| ^^^^^^^^^^^^^^^
help: disambiguate the associated constant for candidate #2
|
339 | if ct == IsNumber::BITS {
| ^^^^^^^^^^^^^^

error[E0034]: multiple applicable items in scope
--> /home/centifuge/.cargo/registry/src/github.com-1ecc6299db9ec823/bitvec-0.20.1/src/order.rs:450:19
|
450 | for n in 0 .. R::BITS {
| ^^^^ multiple BITS found
|
note: candidate #1 is defined in the trait BitMemory
--> /home/centifuge/.cargo/registry/src/github.com-1ecc6299db9ec823/bitvec-0.20.1/src/mem.rs:44:2
|
44 | const BITS: u8 = mem::size_of::() as u8 * 8;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: candidate #2 is defined in the trait IsNumber
--> /home/centifuge/.cargo/registry/src/github.com-1ecc6299db9ec823/funty-1.2.0/src/lib.rs:144:2
|
144 | const BITS: u32;
| ^^^^^^^^^^^^^^^^
help: disambiguate the associated constant for candidate #1
|
450 | for n in 0 .. BitMemory::BITS {
| ^^^^^^^^^^^^^^^
help: disambiguate the associated constant for candidate #2
|
450 | for n in 0 .. IsNumber::BITS {
| ^^^^^^^^^^^^^^

error[E0034]: multiple applicable items in scope
--> /home/centifuge/.cargo/registry/src/github.com-1ecc6299db9ec823/bitvec-0.20.1/src/order.rs:469:21
|
469 | pos.value() < R::BITS,| ^^^^ multiple BITS found
|
note: candidate #1 is defined in the trait BitMemory
--> /home/centifuge/.cargo/registry/src/github.com-1ecc6299db9ec823/bitvec-0.20.1/src/mem.rs:44:2
|
44 | const BITS: u8 = mem::size_of::() as u8 * 8;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: candidate #2 is defined in the trait IsNumber
--> /home/centifuge/.cargo/registry/src/github.com-1ecc6299db9ec823/funty-1.2.0/src/lib.rs:144:2
|
144 | const BITS: u32;
| ^^^^^^^^^^^^^^^^
help: disambiguate the associated constant for candidate #1
|
469 | pos.value() < BitMemory::BITS,| ^^^^^^^^^^^^^^^
help: disambiguate the associated constant for candidate #2
|
469 | pos.value() < IsNumber::BITS,| ^^^^^^^^^^^^^^

error[E0034]: multiple applicable items in scope
--> /home/centifuge/.cargo/registry/src/github.com-1ecc6299db9ec823/bitvec-0.20.1/src/order.rs:476:7
|
476 | R::BITS,| ^^^^ multiple BITS found
|
note: candidate #1 is defined in the trait BitMemory
--> /home/centifuge/.cargo/registry/src/github.com-1ecc6299db9ec823/bitvec-0.20.1/src/mem.rs:44:2
|
44 | const BITS: u8 = mem::size_of::() as u8 * 8;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: candidate #2 is defined in the trait IsNumber
--> /home/centifuge/.cargo/registry/src/github.com-1ecc6299db9ec823/funty-1.2.0/src/lib.rs:144:2
|
144 | const BITS: u32;
| ^^^^^^^^^^^^^^^^
help: disambiguate the associated constant for candidate #1
|
476 | BitMemory::BITS,| ^^^^^^^^^^^^^^^
help: disambiguate the associated constant for candidate #2
|
476 | IsNumber::BITS,| ^^^^^^^^^^^^^^

error: aborting due to 60 prevIoUs errors

部分错误有详细解释:E0034、E0308。 有关错误的更多信息,请尝试 rustc --explain E0034。 错误:无法编译子项 v2.0.0 (https://github.com/paritytech/substrate#e03ca38d),可以在 /tmp/cargo-installkvO14R 中找到中间工件

原因: 无法编译 bitvec

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。