From 24b8926ed6ed3f509e08d43b35e65488f789ddb2 Mon Sep 17 00:00:00 2001 From: Tony Messias Date: Mon, 8 Jul 2024 18:44:11 -0300 Subject: [PATCH 1/3] Install libgmp when compiling on Ubuntu --- bin/install | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bin/install b/bin/install index c40be12..10fed39 100755 --- a/bin/install +++ b/bin/install @@ -342,6 +342,7 @@ os_based_configure_options() { else local jpeg_path=$(locate libjpeg.so | awk '{ print length(), $0 | "sort -n" }' | cut -d" " -f2- | head -n 1) local libpng_path=$(locate libpng.so | awk '{ print length(), $0 | "sort -n" }' | cut -d" " -f2- | head -n 1) + local libgmp_path=$(locate libgmp.so | awk '{ print length(), $0 | "sort -n" }' | cut -d" " -f2- | head -n 1) configure_options="--with-openssl --with-curl --with-zlib --with-readline --with-gettext" if [ "$jpeg_path" = "" ]; then @@ -355,6 +356,12 @@ os_based_configure_options() { else configure_options="$configure_options --with-png-dir=$libpng_path --with-png" fi + + if [ "$libgmp_path" = "" ]; then + export ASDF_PKG_MISSING="$ASDF_PKG_MISSING libgmp" + else + configure_options="$configure_options --with-gmp-dir=$libgmp_path --with-gmp" + fi fi echo $configure_options From c60d449ec66716aa60c214f7575556819c0f9e0a Mon Sep 17 00:00:00 2001 From: Tony Messias Date: Mon, 15 Jul 2024 21:12:09 -0300 Subject: [PATCH 2/3] Adds libsodium too --- bin/install | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bin/install b/bin/install index 10fed39..424714c 100755 --- a/bin/install +++ b/bin/install @@ -343,6 +343,8 @@ os_based_configure_options() { local jpeg_path=$(locate libjpeg.so | awk '{ print length(), $0 | "sort -n" }' | cut -d" " -f2- | head -n 1) local libpng_path=$(locate libpng.so | awk '{ print length(), $0 | "sort -n" }' | cut -d" " -f2- | head -n 1) local libgmp_path=$(locate libgmp.so | awk '{ print length(), $0 | "sort -n" }' | cut -d" " -f2- | head -n 1) + local libsodium_path=$(locate libsodium.so | awk '{ print length(), $0 | "sort -n" }' | cut -d" " -f2- | head -n 1) + configure_options="--with-openssl --with-curl --with-zlib --with-readline --with-gettext" if [ "$jpeg_path" = "" ]; then @@ -362,6 +364,12 @@ os_based_configure_options() { else configure_options="$configure_options --with-gmp-dir=$libgmp_path --with-gmp" fi + + if [ "$libsodium_path" = "" ]; then + export ASDF_PKG_MISSING="$ASDF_PKG_MISSING libsodium" + else + configure_options="$configure_options --with-sodium=$libsodium_path" + fi fi echo $configure_options From b460995c9a3283904b239622d3c1c955863c8099 Mon Sep 17 00:00:00 2001 From: Tony Messias Date: Mon, 15 Jul 2024 21:17:33 -0300 Subject: [PATCH 3/3] Fix sodium install --- bin/install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/install b/bin/install index 424714c..7537d42 100755 --- a/bin/install +++ b/bin/install @@ -368,7 +368,7 @@ os_based_configure_options() { if [ "$libsodium_path" = "" ]; then export ASDF_PKG_MISSING="$ASDF_PKG_MISSING libsodium" else - configure_options="$configure_options --with-sodium=$libsodium_path" + configure_options="$configure_options --with-sodium-dir=$libsodium_path --with-sodium" fi fi