From 0de4ded00c182faed05a3007f422b49d2bd9d6fb Mon Sep 17 00:00:00 2001 From: abhijayrajvansh Date: Mon, 2 Sep 2024 03:08:27 +0530 Subject: [PATCH] fix: solana-test-validator error (#22) Signed-off-by: abhijayrajvansh --- README.md | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a026797..6867183 100644 --- a/README.md +++ b/README.md @@ -149,11 +149,22 @@ Error: failed to start validator: Failed to create ledger at test-ledger: io err ``` This is because the BSD tar program is not compatible with the GNU tar program. -To fix it: + +FIX: install GNU tar program using homebrew and export it's executable path in your .zshrc file. + +## Mac with Apple Silicon ```bash brew install gnu-tar # Put this in ~/.zshrc export PATH="/opt/homebrew/opt/gnu-tar/libexec/gnubin:$PATH" ``` -see https://solana.stackexchange.com/questions/4499/blockstore-error-when-starting-solana-test-validator-on-macos-13-0-1 \ No newline at end of file + +## Intel-based Mac + +```bash +brew install gnu-tar +# Put this in ~/.zshrc +export PATH="/usr/local/opt/gnu-tar/libexec/gnubin:$PATH" +``` +see https://solana.stackexchange.com/questions/4499/blockstore-error-when-starting-solana-test-validator-on-macos-13-0-1/16319#16319 \ No newline at end of file