Skip to content

Commit

Permalink
Fix MacOS build instruction
Browse files Browse the repository at this point in the history
Fix Issue steemit#3225

Fix "Could NOT find zlib (missing: ZLIB_LIBRARIES)"
  • Loading branch information
economicstudio committed Jan 9, 2019
1 parent 9e83f66 commit aaacaaf
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions doc/building.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,12 +185,15 @@ Install Homebrew by following the instructions here: http://brew.sh/
openssl \
snappy \
zlib \
bzip2 \
python3
pip3 install --user jinja2

Note: brew recently updated to boost 1.61.0, which is not yet supported by
steem. Until then, this will allow you to install boost 1.60.0.
You may also need to install zlib and bzip2 libraries manually.
In that case, change the directories for `export` accordingly.

*Optional.* To use TCMalloc in LevelDB:

Expand All @@ -208,11 +211,11 @@ steem. Until then, this will allow you to install boost 1.60.0.

### Compile

export OPENSSL_ROOT_DIR=$(brew --prefix)/Cellar/openssl/1.0.2h_1/
export BOOST_ROOT=$(brew --prefix)/Cellar/[email protected]/1.60.0/
export SNAPPY_LIBRARIES=$(brew --prefix)/Cellar/snappy/1.1.7_1/lib/
export SNAPPY_INCLUDE_DIR=$(brew --prefix)/Cellar/snappy/1.1.7_1/include/
export ZLIB_LIBRARIES=$(brew --prefix)/Cellar/zlib/1.2.11/lib/
export OPENSSL_ROOT_DIR=$(brew --prefix)/Cellar/openssl/1.0.2q/
export SNAPPY_ROOT_DIR=$(brew --prefix)/Cellar/snappy/1.1.7_1
export ZLIB_ROOT_DIR=$(brew --prefix)/Cellar/zlib/1.2.11
export BZIP2_ROOT_DIR=$(brew --prefix)/Cellar/bzip2/1.0.6_1
git checkout stable
git submodule update --init --recursive
mkdir build && cd build
Expand Down

0 comments on commit aaacaaf

Please sign in to comment.