Skip to content

Commit

Permalink
Merge pull request #23 from abhijayrajvansh/fix/solana-test-validator…
Browse files Browse the repository at this point in the history
…-macos

fix: solana-test-validator macos error, expects gnu-tar (#22)
  • Loading branch information
Francisco de Borja Aranda Castillejo authored Sep 4, 2024
2 parents 3bc8dad + 0de4ded commit 77750b6
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 77750b6

Please sign in to comment.