Skip to content

Commit

Permalink
Followup #1239: add specific pointer for MacOS in regards to default …
Browse files Browse the repository at this point in the history
…$XDG_DATA_HOME location (#1240)

* update notice of ~/.svm/ directory usage in regards to changes in svm-rs

* add note of most common mapped located of XDG_DATA_HOME when unset

* add specific note on MacOS install location, derived from https://github.com/dirs-dev/dirs-rs?tab=readme-ov-file#features

* fix paths
  • Loading branch information
zerosnacks authored Jul 10, 2024
1 parent 2fdf451 commit 3d82a08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ Forge will sometimes check for newer Solidity versions that fit your project. To

[solc-bin](https://binaries.soliditylang.org/) doesn't offer static builds for Apple silicon. Foundry relies on [svm](https://github.com/alloy-rs/svm-rs) to install native builds for Apple silicon.

All solc versions are installed under `~/.svm/` if the directory already exists. If not, it uses `$XDG_DATA_HOME/svm/`, commonly mapped to `$HOME/.local/share/svm/`. If you encounter solc related errors, such as `SolcError: ...` please remove the `~/.svm/` directory and try again, this will trigger a fresh install and usually resolves the issue.
All solc versions are installed under `~/.svm/` if the directory already exists. If not, it uses `$XDG_DATA_HOME/svm/`, commonly mapped to `$HOME/.local/share/svm/` on Linux or `$HOME/Library/Application Support/svm/` on MacOS. If you encounter solc related errors, such as `SolcError: ...` please remove the `~/.svm/` directory and try again, this will trigger a fresh install and usually resolves the issue.

If you're on Apple silicon, please ensure the [`z3` theorem prover](https://github.com/Z3Prover/z3) is installed: `brew install z3`

Expand Down

0 comments on commit 3d82a08

Please sign in to comment.