- Clean old build files:
rm -rf _build deps; mix deps.clean --all
- Download deps:
mix deps.get
- Install tools and other libs:
sudo port install gmp libtool
- Try build libsecp256k1:
cd deps/libsecp256k1/c_src/secp256k1; aclocal; autoconf; cd ..; ./build_deps.sh
- Try build blockscout:
cd blockscout; mix do deps.get, local.rebar --force, deps.compile, compile
- If gmp.h not found, then modify Makefile:
vi deps/libsecp256k1/Makefile
, add followingCFLAGS += -I /opt/local/include -L /opt/local/lib
- Rebuild blockscout:
mix do deps.get, local.rebar --force, deps.compile, compile
Created
April 7, 2022 10:55
-
-
Save YongmingZhao/1fe2f3273005ae9f5babfa35aebf7f93 to your computer and use it in GitHub Desktop.
Compile libsecp256 with blockscout
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment