Skip to content

Commit b6000ee

Browse files
authored
Merge pull request #910 from Divide-By-0/pr
updated install for mac instructions
2 parents 613d700 + d0b92b2 commit b6000ee

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/hevm/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,7 @@ If you prefer to use your own installation of GHC and the basic Haskell package
294294
295295
**Note:** If you are on macOS when building with Stack, you will first need to install the [secp256k1](https://github.com/bitcoin-core/secp256k1) and [libff](https://github.com/scipr-lab/libff) libraries. These commands should be enough:
296296
297+
$ brew install automake
297298
$ git clone https://github.com/bitcoin-core/secp256k1.git
298299
$ cd secp256k1
299300
$ ./autogen.sh
@@ -302,6 +303,7 @@ If you prefer to use your own installation of GHC and the basic Haskell package
302303
$ sudo make install
303304
$ cd .. && rm -rf secp256k1 # optional (cleanup)
304305
306+
$ brew install openssl
305307
$ git clone https://github.com/scipr-lab/libff --recursive
306308
$ cd libff
307309
$ export LDFLAGS=-L/usr/local/opt/openssl/lib
@@ -312,7 +314,7 @@ If you prefer to use your own installation of GHC and the basic Haskell package
312314
$ sed -i '' 's/STATIC/SHARED/' depends/CMakeLists.txt
313315
$ mkdir build
314316
$ cd build
315-
$ CXXFLAGS="-fPIC $CXXFLAGS" cmake $ARGS ..
317+
$ CXXFLAGS="-fPIC $CXXFLAGS" OPENSSL_ROOT_DIR=/usr/local/opt/openssl cmake $ARGS ..
316318
$ make && sudo make install
317319
318320
### Cheat codes

0 commit comments

Comments
 (0)