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

Wrong target directory while executing cargo-install-all.sh with env CARGO_TARGET_DIR set #35663

Closed
aj3n opened this issue Sep 23, 2024 · 1 comment
Labels
community Community contribution

Comments

@aj3n
Copy link

aj3n commented Sep 23, 2024

Problem

I got an error while I was trying to install Solana binaries with cargo-install-all.sh:

cp: cannot stat 'target/release/solana': No such file or directory

I think it's because I set my CARGO_TARGET_DIR to ~/.cargo/target

Proposed Solution

You can get the target directory with:

 target_dir=$(cargo metadata | jq .target_directory -r)

Then just replace all "target/" with "$target_dir/".

This seemed to fix my problem.

I'd love to make a PR to fix it if this is a proper solution to you guys, along with other shell scripts with same issue.

Thx for this wonderful project.

@aj3n aj3n added the community Community contribution label Sep 23, 2024
Copy link
Contributor

This repository is no longer in use. Please re-open this issue in the agave repo: https://github.com/anza-xyz/agave

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community Community contribution
Projects
None yet
Development

No branches or pull requests

1 participant