ag_gen/deps.sh
2022-04-26 19:36:30 -05:00

31 lines
1.2 KiB
Bash
Executable File

#!/bin/bash
OS=$(uname | tr 'A-Z' 'a-z')
if [[ $OS = 'darwin' ]]; then
if hash brew 2>/dev/null; then
xcode-select --install > /dev/null
brew cask install postgres
brew install postgresql cmake boost cmocka cppcheck doxygen graphviz tbb libconfig
else
echo "Please install homebrew first."
fi
elif [[ $OS = 'linux' ]]; then
if hash pacman 2>/dev/null; then
sudo pacman -S cmake postgresql boost cppcheck clang doxygen graphviz libconfig openmpi
elif hash apt-get 2>/dev/null; then
sudo apt-get -y install libboost-all-dev postgresql postgresql-contrib \
libpq-dev cppcheck clang valgrind doxygen graphviz cmake \
build-essential bison flex libssl-dev libconfig++-dev libyaml-cpp-dev \
openmpi-bin libomp-dev
elif hash yum 2>/dev/null; then
sudo yum install cmake epel-release postgresql-devel boost-devel \
openssl-devel graphviz-devel bison-devel flex-devel cppcheck valgrind \
tbb libconfig-devel openmpi
else
echo "Your distro is currently not supported."
fi
else
echo "Your operating system is not currently supported."
fi