From 980dae0e87b6adb69a84d595f61b0a4c6ad4c45e Mon Sep 17 00:00:00 2001 From: Sad Pencil Date: Thu, 14 Nov 2019 11:45:40 +0800 Subject: [PATCH 1/6] Update README.md add missing prerequisites for Debian/Ubuntu --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 53b1c3f..0356f73 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ For Ubuntu 14.04, the following can be done to install the above: - To install libsnark prerequisites: - `$ sudo apt-get install build-essential cmake git libgmp3-dev libprocps3-dev python-markdown libboost-all-dev libssl-dev` + `$ sudo apt-get install build-essential pkg-config cmake git libgmp3-dev libprocps3-dev python-markdown libboost-all-dev libssl-dev` Note: Don't clone libsnark from `https://github.com/scipr-lab/libsnark`. Make sure to use the modified libsnark submodule within the jsnark cloned repo in the next section. From 57623cc8b2af92ff24ca5d7aaac05b45a648363a Mon Sep 17 00:00:00 2001 From: Sad Pencil Date: Thu, 14 Nov 2019 14:27:57 +0800 Subject: [PATCH 2/6] Update README for Ubuntu 16.04 and Debian 10 --- README.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/README.md b/README.md index 0356f73..1d70a09 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,7 @@ __Updates__: - Junit 4 - BouncyCastle library +#### Ubuntu 14.04 For Ubuntu 14.04, the following can be done to install the above: - To install libsnark prerequisites: @@ -40,6 +41,33 @@ Verify the installed version by `java -version`. In case it is not 1.8 or later, - To download BouncyCastle: `$ wget https://www.bouncycastle.org/download/bcprov-jdk15on-159.jar` + +#### Ubuntu 16.04 + +For Ubuntu 16.04, the only difference is to replace `libprocps3-dev` with `libprocps4-dev`. + +- To install libsnark prerequisites: + + `$ sudo apt-get install build-essential pkg-config cmake git libgmp3-dev libprocps4-dev python-markdown libboost-all-dev libssl-dev` + +#### Debian 10 + +For Debian 10, the only difference is to replace `libprocps3-dev` with `libprocps-dev`. + +- To install libsnark prerequisites: + + `$ sudo apt-get install build-essential pkg-config cmake git libgmp3-dev libprocps-dev python-markdown libboost-all-dev libssl-dev` + +Note: Don't clone libsnark from `https://github.com/scipr-lab/libsnark`. Make sure to use the modified libsnark submodule within the jsnark cloned repo in the next section. + +- To install JDK: + +OpenJDK is a good alternative for Oracle JDK, and it's obtainable in almost every Linux distros' official repo. + +To install OpenJDK 11 instead of Oracle JDK 8, + + `$ sudo apt-get install default-jdk` + ### jsnark Installation Instructions From 21d40f3e2936d2acf15ca4b0a755ef1560257a54 Mon Sep 17 00:00:00 2001 From: Sad Pencil Date: Thu, 14 Nov 2019 14:29:07 +0800 Subject: [PATCH 3/6] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1d70a09..b9824dc 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ Note: Don't clone libsnark from `https://github.com/scipr-lab/libsnark`. Make su - To install JDK: -OpenJDK is a good alternative for Oracle JDK, and it's obtainable in almost every Linux distros' official repo. +OpenJDK is a good alternative for Oracle JDK, and it's obtainable from almost every Linux distro's official repo. To install OpenJDK 11 instead of Oracle JDK 8, From 88a400c4435d3648fe060bfb9c85573c992f3d98 Mon Sep 17 00:00:00 2001 From: Sad Pencil Date: Thu, 14 Nov 2019 14:54:36 +0800 Subject: [PATCH 4/6] Update README.md --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b9824dc..51457ab 100644 --- a/README.md +++ b/README.md @@ -50,9 +50,11 @@ For Ubuntu 16.04, the only difference is to replace `libprocps3-dev` with `libpr `$ sudo apt-get install build-essential pkg-config cmake git libgmp3-dev libprocps4-dev python-markdown libboost-all-dev libssl-dev` -#### Debian 10 +Note: Don't clone libsnark from `https://github.com/scipr-lab/libsnark`. Make sure to use the modified libsnark submodule within the jsnark cloned repo in the next section. + +#### Ubuntu 18.04 / Debian 10 -For Debian 10, the only difference is to replace `libprocps3-dev` with `libprocps-dev`. +For Ubuntu 18.04, the only difference is to replace `libprocps3-dev` with `libprocps-dev`. - To install libsnark prerequisites: From 17ce3dccba560d48c9ab5aa530584d79e04bb88e Mon Sep 17 00:00:00 2001 From: Sad Pencil Date: Thu, 14 Nov 2019 15:10:29 +0800 Subject: [PATCH 5/6] Update README.md --- README.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/README.md b/README.md index 51457ab..8ca80df 100644 --- a/README.md +++ b/README.md @@ -66,10 +66,7 @@ Note: Don't clone libsnark from `https://github.com/scipr-lab/libsnark`. Make su OpenJDK is a good alternative for Oracle JDK, and it's obtainable from almost every Linux distro's official repo. -To install OpenJDK 11 instead of Oracle JDK 8, - - `$ sudo apt-get install default-jdk` - +To install OpenJDK 11 instead of Oracle JDK 8, `$ sudo apt-get install default-jdk` ### jsnark Installation Instructions From 9a712e20d58ec942fa2557e5180de946a55ebf52 Mon Sep 17 00:00:00 2001 From: Sad Pencil Date: Thu, 14 Nov 2019 15:11:35 +0800 Subject: [PATCH 6/6] Update README.md --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8ca80df..2b7644d 100644 --- a/README.md +++ b/README.md @@ -64,9 +64,11 @@ Note: Don't clone libsnark from `https://github.com/scipr-lab/libsnark`. Make su - To install JDK: -OpenJDK is a good alternative for Oracle JDK, and it's obtainable from almost every Linux distro's official repo. + OpenJDK is a good alternative for Oracle JDK, and it's obtainable from almost every Linux distro's official repo. -To install OpenJDK 11 instead of Oracle JDK 8, `$ sudo apt-get install default-jdk` + To install OpenJDK 11 instead of Oracle JDK 8, + + `$ sudo apt-get install default-jdk` ### jsnark Installation Instructions