Skip to content

Commit 0d7b690

Browse files
authored
Update README.md (#167)
Includes the hint that solc requires Rosetta to be installed on M1/M2
1 parent af20e96 commit 0d7b690

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ The downloaded binaries are stored in `~/.solc-select/artifacts/`.
1616
pip3 install solc-select
1717
```
1818

19+
### Running on ARM (Mac M1/M2)
20+
21+
`solc` requires Rosetta to be installed. See the FAQ on [how to install Rosetta](#oserror-errno-86-bad-cpu-type-in-executable).
22+
1923
## Usage
2024

2125
The global version of `solc` can be set with the `solc-select use <version>` command:
@@ -74,6 +78,17 @@ Feel free to stop by our [Slack channel](https://empirehacking.slack.com/) for h
7478

7579
## FAQ
7680

81+
### OSError: [Errno 86] Bad CPU type in executable
82+
`solc` requires Rosetta to be installed. To see whether you have Rosetta installed on your mac, run
83+
```
84+
pgrep -q oahd && echo Rosetta is installed || echo Rosetta is NOT installed
85+
```
86+
87+
If it is not installed, it can be installed with the command
88+
```
89+
/usr/sbin/softwareupdate --install-rosetta --agree-to-license
90+
```
91+
7792
### solc-version not changing after running `solc-select use [version]` or setting `SOLC_VERSION`
7893

7994
Uninstall other installations of solc on your machine. `solc-select` re-installs solc binaries for your operating system and acts as a wrapper for solc. With duplicate solc installations, this may result in your `solc` version not being up to date.

0 commit comments

Comments
 (0)