Skip to content

Commit

Permalink
Add instructions to install libblst manually
Browse files Browse the repository at this point in the history
  • Loading branch information
abailly-iohk authored Aug 14, 2023
1 parent 09491b1 commit c12c27d
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions docs/getting-started/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,34 @@ make check
sudo make install
```

#### Installing BLST

Download and install BLST so that cardano-base can pick it up (assumes pkg-config is installed):

```
git clone https://github.com/supranational/blst
cd blst
git checkout v0.3.10
./build.sh
cat > libblst.pc << EOF
prefix=/usr/local
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
Name: libblst
Description: Multilingual BLS12-381 signature library
URL: https://github.com/supranational/blst
Version: 0.3.10
Cflags: -I${includedir}
Libs: -L${libdir} -lblst
EOF
sudo cp libblst.pc /usr/local/lib/pkgconfig/
sudo cp bindings/blst_aux.h bindings/blst.h bindings/blst.hpp /usr/local/include/
sudo cp libblst.a /usr/local/lib
sudo chmod u=rw,go=r /usr/local/{lib/{libblst.a,pkgconfig/libblst.pc},include/{blst.{h,hpp},blst_aux.h}}
```

#### Downloading the source code for cardano-node

Create a working directory for your builds:
Expand Down

0 comments on commit c12c27d

Please sign in to comment.