muta icon indicating copy to clipboard operation
muta copied to clipboard

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

Open tristech81 opened this issue 4 years ago • 4 comments

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!

tristech81 avatar Aug 21 '21 04:08 tristech81

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.

xcshuan avatar Aug 29 '21 09:08 xcshuan

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!

mysugar avatar Nov 29 '21 08:11 mysugar

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

xcshuan avatar Nov 29 '21 09:11 xcshuan

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

zicklag avatar Feb 20 '22 02:02 zicklag