Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM golang:1.14-buster as builder

# Set up dependencies
ENV PACKAGES jq curl wget jq file make git libgmp-dev gcc g++ swig libboost-serialization-dev
ENV PACKAGES curl wget jq file make git libgmp-dev gcc g++ swig libboost-serialization1.67-dev

RUN apt-get update && \
apt-get install -y $PACKAGES && \
Expand Down
22 changes: 20 additions & 2 deletions docs/docs/building.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@

- Go 1.14+ (installation instructions available [here](https://golang.org/dl/]))

### Ubuntu
### Ubuntu 20.04 / Debian 10

```bash
# Run the following command if using Ubuntu
sudo apt-get install libgmp-dev swig libboost-all-dev
sudo apt-get install libgmp-dev swig libboost-serialization1.67-dev

# Download and install the MCL libraries
cd ~
Expand Down Expand Up @@ -54,3 +54,21 @@ For non-developer users we recommend that the user installs the binaries into th
sudo make install

This will install the binaries in the directory specified by your `$GOBIN` environment variable.

### Boost Dependencies

Currently the code requires that the user compiles the code with at least version 1.67 of Boost Serialisation library. Failure to do so will mean that users will not be able to sync with the blockchain. This limitation will be resolved in the near future (with the Boost dependency being removed completely).

To verify which libraries you have linked against use the following commands

**Ubuntu 20.04 / Debian 10**

```bash
ldd ./build/fetchd
```

**MacOS**

```bash
otool -L ./build/fetchd
```