Skip to content

Commit

Permalink
fix: solana-test-validator error (#22)
Browse files Browse the repository at this point in the history
Signed-off-by: abhijayrajvansh <[email protected]>
  • Loading branch information
abhijayrajvansh committed Sep 4, 2024
1 parent 3bc8dad commit 8332146
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

## 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

0 comments on commit 8332146

Please sign in to comment.