Skip to content

Commit

Permalink
Merge pull request #165 from andromeda/more-deps
Browse files Browse the repository at this point in the history
Install additional dependencies for use cases
  • Loading branch information
angelhof authored Mar 18, 2021
2 parents 9981c2b + 4aa30b6 commit fce117a
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -98,15 +101,25 @@ 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
./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
Expand Down

0 comments on commit fce117a

Please sign in to comment.