Skip to content

Commit

Permalink
Update README.md (#167)
Browse files Browse the repository at this point in the history
Includes the hint that solc requires Rosetta to be installed on M1/M2
  • Loading branch information
0xPhaze authored Mar 16, 2023
1 parent af20e96 commit 0d7b690
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ The downloaded binaries are stored in `~/.solc-select/artifacts/`.
pip3 install solc-select
```

### Running on ARM (Mac M1/M2)

`solc` requires Rosetta to be installed. See the FAQ on [how to install Rosetta](#oserror-errno-86-bad-cpu-type-in-executable).

## Usage

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

## FAQ

### OSError: [Errno 86] Bad CPU type in executable
`solc` requires Rosetta to be installed. To see whether you have Rosetta installed on your mac, run
```
pgrep -q oahd && echo Rosetta is installed || echo Rosetta is NOT installed
```

If it is not installed, it can be installed with the command
```
/usr/sbin/softwareupdate --install-rosetta --agree-to-license
```

### solc-version not changing after running `solc-select use [version]` or setting `SOLC_VERSION`

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.
Expand Down

0 comments on commit 0d7b690

Please sign in to comment.