From 54372226dae9ce9ae804696cbbfe3ab2c7bcccd8 Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Tue, 2 Jul 2019 21:32:30 +0200 Subject: update README with more build instructions --- p11p-daemon/README.md | 41 +++++++++++++++++++++++++++++++---------- 1 file changed, 31 insertions(+), 10 deletions(-) diff --git a/p11p-daemon/README.md b/p11p-daemon/README.md index a5e4cea..1fb9c6a 100644 --- a/p11p-daemon/README.md +++ b/p11p-daemon/README.md @@ -4,14 +4,34 @@ ### p11-kit - $ git clone https://github.com/p11-glue/p11-kit && cd p11-kit - $ sh autogen.sh && ./configure - $ make - $ sudo make install + $ sudo apt install pkg-config libffi-dev + $ curl -LO https://github.com/p11-glue/p11-kit/releases/download/0.23.16.1/p11-kit-0.23.16.1.tar.gz + $ curl -LO https://github.com/p11-glue/p11-kit/releases/download/0.23.16.1/p11-kit-0.23.16.1.tar.gz.sig + $ gpg --verify p11-kit-0.23.16.1.tar.gz.sig + $ tar xf p11-kit-0.23.16.1.tar.gz && cd p11-kit + $ ./configure --without-libtasn1 + $ make all check + $ sudo make install -Tested with commit 787888e1 (2019-06-19). +### Erlang/OTP 19 -## Compile +Ideally, your OS distribution has Elrang/OTP 19.x: + + $ sudo apt install erlang + +An alternative -- which hurts because how would you verify kerl -- +would be: + + $ curl -LO https://raw.githubusercontent.com/kerl/kerl/master/kerl + $ : pray that you got the right bits! + $ chmod +x kerl + $ sudo apt install libncurses5-dev + $ ./kerl build 19.2 + $ mkdir ~/kerl + $ ./kerl install 19.2 ~/kerl/19.2 + $ . ~/kerl/19.2/activate + +## Compile p11p-daemon If you don't have rebar3 installed, install it. See https://www.rebar3.org/docs/ . @@ -22,6 +42,7 @@ If you don't have rebar3 in PATH, add it. Example: Compile: + $ cd p11p-daemon $ make ## Configure @@ -34,14 +55,14 @@ To start an Erlang shell running the p11p application: $ make shell -Quite by typing in "q()." in the shell. +Quit by typing in "q()." in the shell. -To start a "release", running in the background logging to files under -_build/default/rel/p11p/log: +To start a "release", running in the background and logging to files +under _build/default/rel/p11p/log: $ make start -To stop it again: +To stop it: $ make stop -- cgit v1.1