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

Error when running "cargo build --release --example muta-chain" #478

Open
tristech81 opened this issue Aug 21, 2021 · 4 comments
Open

Error when running "cargo build --release --example muta-chain" #478

tristech81 opened this issue Aug 21, 2021 · 4 comments

Comments

@tristech81
Copy link

tristech81 commented Aug 21, 2021

Just following the getting started guide and ran into the following error when trying to do a "cargo build --release --example muta-chain"

I get the following error:

cargo build --release --example muta-chain
Updating crates.io index
Updating git repository http://github.com/zeroqn/p2p
Updating git repository https://github.com/graphql-rust/juniper
Updating git repository https://github.com/tikv/rust-prometheus.git
error: failed to select a version for the requirement zeroize = "^0.9.3"
candidate versions found which didn't match: 1.4.1, 1.4.0, 1.3.0, ...
location searched: crates.io index
required by package amcl_wrapper v0.2.1
... which is depended on by bls_amcl v0.7.0
... which is depended on by ophelia-bls-amcl v0.3.0
... which is depended on by common-crypto v0.2.1 (/home/xxx/muta/common/crypto)
... which is depended on by byzantine v0.2.1 (/home/xxx/muta/byzantine)
... which is depended on by cli v0.2.1 (/home/xxx/muta/core/cli)
... which is depended on by muta v0.2.1 (/home/xxx/muta)

I see the version requirements do not match, not sure if I should try changing it since its a dependency, any help appreciated thank you!

@xcshuan
Copy link

xcshuan commented Aug 29, 2021

This problem is because zeroize v0.9.3 has been cleared in crate. You can manually download zeroize v0.9.3 and put it under ~/.cargo/registry/.../zeroize-0.9.3, such as ~/.cargo/registry/src/mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd/zeroize-0.9.3,and zeroize_derive ~/.cargo/registry/src/mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd/zeroize_derive-0.9.3,link is here zeroize-0.9.3.

@mysugar
Copy link

mysugar commented Nov 29, 2021

This problem is because zeroize v0.9.3 has been cleared in crate. You can manually download zeroize v0.9.3 and put it under ~/.cargo/registry/.../zeroize-0.9.3, such as ~/.cargo/registry/src/mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd/zeroize-0.9.3,and zeroize_derive ~/.cargo/registry/src/mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd/zeroize_derive-0.9.3,link is here zeroize-0.9.3.

Not work for me. Could you provide one docker file for build, or just the muta-chain binary file. Thanks!

@xcshuan
Copy link

xcshuan commented Nov 29, 2021

This problem is because zeroize v0.9.3 has been cleared in crate. You can manually download zeroize v0.9.3 and put it under ~/.cargo/registry/.../zeroize-0.9.3, such as ~/.cargo/registry/src/mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd/zeroize-0.9.3,and zeroize_derive ~/.cargo/registry/src/mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd/zeroize_derive-0.9.3,link is here zeroize-0.9.3.

Not work for me. Could you provide one docker file for build, or just the muta-chain binary file. Thanks!

this is a example of muta. https://filetransfer.io/data-package/gsKoFLSs#link

@zicklag
Copy link

zicklag commented Feb 20, 2022

I'm getting the following error while running the build command:

➜ cargo build --release --example muta-chain
    Updating crates.io index
error: failed to select a version for `tentacle-secio`.
    ... required by package `muta-keypair v0.2.1 (/home/zicklag/git/other/muta/devtools/keypair)`
versions that meet the requirements `^0.1` are: 0.1.11, 0.1.10, 0.1.9, 0.1.8, 0.1.7, 0.1.6, 0.1.5, 0.1.4, 0.1.3, 0.1.2, 0.1.1, 0.1.0

the package `muta-keypair` depends on `tentacle-secio`, with features: `molc` but `tentacle-secio` does not have these features.


failed to select a version for `tentacle-secio` which could resolve this conflict

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

4 participants