From 28cec106a82ddc50e000235d5a72787989edab35 Mon Sep 17 00:00:00 2001 From: noah Date: Wed, 27 Apr 2022 17:20:04 -0500 Subject: [PATCH] Updating deps.sh for postgres --- README.md | 19 ++++--------------- deps.sh | 8 +++++++- 2 files changed, 11 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index b40c909..efd19ca 100755 --- a/README.md +++ b/README.md @@ -46,20 +46,9 @@ Note, if you change the password, be sure to change the passwords in the config. This application uses CMake to build. - mkdir build cd build + ./build.sh -For debug builds: - - cmake -DCMAKE_BUILD_TYPE=Debug ../ - -For release builds: - - cmake -DCMAKE_BUILD_TYPE=Release ../ - -Build the application: - - make ag_gen ## Configuration @@ -73,9 +62,9 @@ RAGE uses an ini-style configuration, located in config.ini. ## Running -Execute example from the examples directory. - - ./ag_gen -n ../examples/thesis_example.nm -x ../examples/thesis_example.xp +Edit the run script to your liking, then just execute the script + + ./run.sh ## Contributing diff --git a/deps.sh b/deps.sh index a70cf22..7ab70cb 100755 --- a/deps.sh +++ b/deps.sh @@ -14,7 +14,13 @@ 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 \ + sudo apt-get install wget ca-certificates + # Add Postgres Repos and GPG keys + wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - + sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list' + sudo apt-get update + + 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