Skip to content

Commit

Permalink
Merge pull request #32 from interbiznw/docs
Browse files Browse the repository at this point in the history
Updated Mac build instructions
  • Loading branch information
interbiznw authored Oct 17, 2019
2 parents 1d8ed84 + 80ab6f1 commit a9831e2
Showing 1 changed file with 26 additions and 10 deletions.
36 changes: 26 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,25 +120,41 @@ If compiling using WSL, use the following command to build the executables in `c
sudo make install DESTDIR=/mnt/c/btcp/BTCPrivate
```

### Mac
Get dependencies:
### Building for Mac
1. Install xcode.
```{r, engine='bash'}
# Install xcode
xcode-select --install
```
2. Install HomeBrew.
```{r, engine='bash'}
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
```
3. Install Dependencies with HomeBrew.
```{r, engine='bash'}
brew install cmake autoconf libtool automake coreutils pkgconfig gmp wget
```
4. Install gcc5 with HomeBrew. (** IF USING XCODE 10+ remove --without-multilib flag**)
```{r, engine='bash'}
brew install gcc5 --without-multilib
```

Install:
5. Clone the Bitcoin Private repo to your computer.
```{r, engine='bash'}
git clone https://github.com/BTCPrivate/BitcoinPrivate.git
```
6. Change to BitcoinPrivate Directory.
```{r, engine='bash'}
cd BitcoinPrivate
```
7. Build Bitcoin Private Daemon code.
```{r, engine='bash'}
# Build
./btcputil/build-mac.sh -j$(sysctl -n hw.physicalcpu)
# fetch key
```
8. Fetch key & Params.
```{r, engine='bash'}
./btcputil/fetch-params.sh
# Run
```
9. Run the Bitcoin Private Daemon that was just built.
```{r, engine='bash'}
./src/btcpd
```

Expand Down

0 comments on commit a9831e2

Please sign in to comment.