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
$ cargo install solana-foundation-delegation-program-cli
Updating crates.io index
Installing solana-foundation-delegation-program-cli v1.0.5
error: failed to compile `solana-foundation-delegation-program-cli v1.0.5`, intermediate artifacts can be found at `/tmp/cargo-installIGObAS`
Caused by:
failed to select a version for the requirement `crypto-mac = "^0.7"`
candidate versions found which didn't match: 0.11.1, 0.11.0, 0.10.1, ...
location searched: crates.io index
required by package `hmac v0.7.0`
... which is depended on by `hmac-drbg v0.2.0`
... which is depended on by `libsecp256k1 v0.3.5`
... which is depended on by `solana-sdk v1.7.4`
... which is depended on by `solana-account-decoder v1.7.4`
... which is depended on by `solana-client v1.7.4`
... which is depended on by `solana-foundation-delegation-program-cli v1.0.5`
How to fix
add dependencies to Cargo.toml
[[bin]]
name = "solana-foundation-delegation-program"
path = "src/main.rs"
[dependencies.clap]
version = "2.33.3"
[dependencies.crypto-mac] <<< add this
version = "=0.7.0" <<< add this
[dependencies.solana-account-decoder]
version = "=1.7.4"
DEVELOPERS, please build your package and publish it again
if you want to build manually:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
sudo apt update -y
sudo apt install -y libudev-dev
cargo install cargo-download
cargo-download solana-foundation-delegation-program-cli -x
cd solana-foundation-delegation-program-cli-1.0.5
### maybe it will be required
### sudo apt install build-essential libudev-dev pkg-config libssl-dev -y
### Edit Cargo.toml
add this
[dependencies.crypto-mac]
version = "=0.7.0"
### save Cargo.toml
### in the same folder solana-foundation-delegation-program-cli-1.0.5
cargo build
cd target/debug
./solana-foundation-delegation-program --version
./solana-foundation-delegation-program apply ...
The text was updated successfully, but these errors were encountered:
What i did:
Errors:
How to fix
add dependencies to Cargo.toml
DEVELOPERS, please build your package and publish it again
if you want to build manually:
The text was updated successfully, but these errors were encountered: