Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't install 1.0.5 version of solana-foundation-delegation-program-cli #152

Open
ghost opened this issue Aug 26, 2021 · 0 comments
Open

Comments

@ghost
Copy link

ghost commented Aug 26, 2021

What i did:

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
sudo apt update -y
sudo apt install -y libudev-dev
cargo install solana-foundation-delegation-program-cli

Errors:

$ 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 ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants