From c12c27dae2efc90891544ed1ea0c3459104c1460 Mon Sep 17 00:00:00 2001 From: Arnaud Bailly <79840582+abailly-iohk@users.noreply.github.com> Date: Mon, 14 Aug 2023 14:21:47 +0200 Subject: [PATCH 1/4] Add instructions to install libblst manually --- docs/getting-started/install.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/docs/getting-started/install.md b/docs/getting-started/install.md index d02731b..4198629 100644 --- a/docs/getting-started/install.md +++ b/docs/getting-started/install.md @@ -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: From be528ee6ff49c0ce73f3b2ba7c95de5c14a6e78d Mon Sep 17 00:00:00 2001 From: Arnaud Bailly Date: Wed, 6 Sep 2023 12:20:19 +0200 Subject: [PATCH 2/4] Escape variables in pkg-config file --- docs/getting-started/install.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/getting-started/install.md b/docs/getting-started/install.md index 4198629..4237bb7 100644 --- a/docs/getting-started/install.md +++ b/docs/getting-started/install.md @@ -189,16 +189,16 @@ git checkout v0.3.10 ./build.sh cat > libblst.pc << EOF prefix=/usr/local -exec_prefix=${prefix} -libdir=${exec_prefix}/lib -includedir=${prefix}/include +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 +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/ From 5cd388f2909b866941041a6cbe1879fc493eced7 Mon Sep 17 00:00:00 2001 From: Arnaud Bailly <79840582+abailly-iohk@users.noreply.github.com> Date: Wed, 6 Sep 2023 12:24:23 +0200 Subject: [PATCH 3/4] Update docs/getting-started/install.md Co-authored-by: olgahryniuk <67585499+olgahryniuk@users.noreply.github.com> --- docs/getting-started/install.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/getting-started/install.md b/docs/getting-started/install.md index 4237bb7..1cf4711 100644 --- a/docs/getting-started/install.md +++ b/docs/getting-started/install.md @@ -180,7 +180,7 @@ sudo make install #### Installing BLST -Download and install BLST so that cardano-base can pick it up (assumes pkg-config is installed): +Download and install BLST so that cardano-base can pick it up (assuming that pkg-config is installed): ``` git clone https://github.com/supranational/blst From 15a978ad3574ff912b2459615a54284138c3a793 Mon Sep 17 00:00:00 2001 From: Arnaud Bailly <79840582+abailly-iohk@users.noreply.github.com> Date: Wed, 6 Sep 2023 12:24:38 +0200 Subject: [PATCH 4/4] Update docs/getting-started/install.md Co-authored-by: Mateusz Galazyn <228866+carbolymer@users.noreply.github.com> --- docs/getting-started/install.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/getting-started/install.md b/docs/getting-started/install.md index 1cf4711..6952494 100644 --- a/docs/getting-started/install.md +++ b/docs/getting-started/install.md @@ -182,7 +182,7 @@ sudo make install Download and install BLST so that cardano-base can pick it up (assuming that pkg-config is installed): -``` +```bash git clone https://github.com/supranational/blst cd blst git checkout v0.3.10