You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
969 B
49 lines
969 B
3 years ago
|
# Running Electrum from source on macOS (development version)
|
||
3 years ago
|
|
||
3 years ago
|
## Prerequisites
|
||
3 years ago
|
|
||
3 years ago
|
- [brew](https://brew.sh/)
|
||
|
- python3
|
||
|
- git
|
||
3 years ago
|
|
||
3 years ago
|
## Main steps
|
||
|
|
||
|
### 1. Check out the code from GitHub:
|
||
3 years ago
|
```
|
||
|
$ git clone https://github.com/spesmilo/electrum.git
|
||
|
$ cd electrum
|
||
|
$ git submodule update --init
|
||
|
```
|
||
|
|
||
3 years ago
|
Run install (this should install most dependencies):
|
||
3 years ago
|
```
|
||
3 years ago
|
$ python3 -m pip install --user -e ".[crypto]"
|
||
3 years ago
|
```
|
||
|
|
||
3 years ago
|
### 2. Install libsecp256k1
|
||
3 years ago
|
```
|
||
3 years ago
|
$ brew install autoconf automake libtool coreutils
|
||
3 years ago
|
$ contrib/make_libsecp256k1.sh
|
||
|
```
|
||
|
|
||
3 years ago
|
### 3. Install PyQt5
|
||
|
|
||
|
On Intel-based (x86_64) Macs:
|
||
|
```
|
||
|
$ python3 -m pip install --user pyqt5
|
||
|
```
|
||
3 years ago
|
|
||
3 years ago
|
Re ARM-based Macs (Apple M1), there are no prebuilt wheels on PyPI.
|
||
|
As a workaround, we can install it from `brew`:
|
||
3 years ago
|
```
|
||
|
$ brew install pyqt5
|
||
|
$ echo 'export PATH="/opt/homebrew/opt/qt@5/bin:$PATH"' >> ~/.zshrc
|
||
|
$ echo 'export PATH="/opt/homebrew/opt/pyqt@5/5.15.4_1/bin:$PATH"' >> ~/.zshrc
|
||
|
$ source ~/.zshrc
|
||
|
```
|
||
|
|
||
3 years ago
|
### 4. Run electrum:
|
||
3 years ago
|
```
|
||
|
$ ./run_electrum
|
||
|
```
|