From 06d833b61854952a2fdfdfc7a4e986bee96cc56d Mon Sep 17 00:00:00 2001 From: Nikos Vasilakis Date: Wed, 17 Mar 2021 09:13:36 -0400 Subject: [PATCH 1/2] Install additional dependencies for use cases --- scripts/install.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/scripts/install.sh b/scripts/install.sh index 2c40a76b0..85884a7ad 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -98,6 +98,19 @@ python3 -m pip install -U PyYAML &> $LOG_DIR/pip_install_pyyaml.log python3 -m pip install numpy &> $LOG_DIR/pip_install_numpy.log python3 -m pip install matplotlib &> $LOG_DIR/pip_install_matplotlib.log +echo "Installing web-index dependencies..." +# pandoc v.2.2.1 +wget https://github.com/jgm/pandoc/releases/download/2.2.1/pandoc-2.2.1-1-$(dpkg --print-architecture).deb +sudo dpkg -i ./pandoc-2.2.1-1-$(dpkg --print-architecture).deb +rm ./pandoc-2.2.1-1-$(dpkg --print-architecture).deb +# node version 10+ does not need external npm +sudo apt-get install -y curl +curl -fsSL https://deb.nodesource.com/setup_10.x | sudo -E bash - +sudo apt-get install -y nodejs +cd $PASH_TOP/evaluation/scripts/web-index +npm install +cd $PASH_TOP + # Generate inputs echo "Generating input files..." cd evaluation/scripts/input From 4aa30b60c6ea835fd0b12222bd22a7f72e11a743 Mon Sep 17 00:00:00 2001 From: Nikos Vasilakis Date: Wed, 17 Mar 2021 10:24:13 -0400 Subject: [PATCH 2/2] Move env variable earlier --- scripts/install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/install.sh b/scripts/install.sh index 85884a7ad..f52574b7b 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -65,6 +65,9 @@ else fi +# Export necessary environment variables +export PASH_TOP=$PWD + # Build the parser (requires libtool, m4, automake, opam) echo "Building parser..." eval $(opam config env) @@ -117,9 +120,6 @@ cd evaluation/scripts/input ./gen.sh cd ../../../ -# Export necessary environment variables -export PASH_TOP=$PWD - ## This is necessary for the parser to link to libdash echo "Do not forget to export LD_LIBRARY_PATH as shown below :)" set -v