-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
solana-test-validator fails by default on macOS, as hardened_unpack() expects GNU tar #34625
Comments
See anza-xyz#2840 |
This is because the BSD tar program is not compatible with the GNU tar program. To fix it: you need to install and export the executable path of your GNU tar program in your .zshrc file. Mac with Apple Silicon
Put this in ~/.zshrc
Intel-based Mac
Put this in ~/.zshrc
|
Looks like this is being worked on, see anza-xyz#2840 |
I think this issue was actually resolved with #35213 which first landed in the v2.0 branch. As noted in anza-xyz#3079, the issue seems to show on an Apple M1, but not Apple M3 despite the M1 and M3 having the same OS / Can anyone who has encountered the issue please try with a v2.0 version ? |
not the OP but just wanted to report that on my M1 Pro it is as @steviez said, 1.18.25 fails but 2.0.13 works perfectly fine |
Going to close this one out. Like I said above, #35213 resolved this in the v2.0 line for agave; the change just never landed in solana labs or agave v1.18. If someone still runs into this with agave v2.0, happy to continue the conversation. |
Problem
So far 18 people on Solana Stackexchange have encountered this error. On a default install of MacOS, BSD tar is the default:
Running
solana-test-validator
will fail with:A lot of mac users have Apple's 'Xcode Command Line Tools' installed which provides git, grep, less, cat, etc but does not include GNU tar. Additionally 'blockstore error' is a bit vague.
Proposed Solution
Ideal solution
Avoid the GNU tar dependendency. Either detect and work with BSD tar command out of the box, or use a rust implementation of tar.
Less ideal solution
Detect BSD tar and ask users to install GNU tar.
The text was updated successfully, but these errors were encountered: