From f9ee4e3bd3d88bfc7317fe8b96c32cd12aaa34b1 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Sat, 6 Feb 2016 18:49:12 +0100 Subject: [PATCH] update dependencies in vagrant provision file also automatically checkout if Nominatim directory does not exist --- vagrant-provision.sh | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/vagrant-provision.sh b/vagrant-provision.sh index 3fae5b68..1a770226 100755 --- a/vagrant-provision.sh +++ b/vagrant-provision.sh @@ -29,7 +29,7 @@ USERNAME=vagrant sudo apt-get update -qq sudo apt-get upgrade -y -sudo apt-get install -y build-essential libxml2-dev libgeos-dev libpq-dev libbz2-dev \ +sudo apt-get install -y build-essential libgeos-dev libpq-dev libbz2-dev \ libtool automake libproj-dev libboost-dev libboost-system-dev \ libboost-filesystem-dev libboost-thread-dev libexpat-dev sudo apt-get autoremove -y @@ -73,18 +73,19 @@ echo "date.timezone = 'Etc/UTC'" | sudo tee /etc/php5/cli/conf.d/99-timezone.ini ### ### Nominatim ### -sudo apt-get install -y libprotobuf-c0-dev protobuf-c-compiler \ - libgeos-c1 libgeos++-dev \ - lua5.2 liblua5.2-dev - -# git clone --recursive https://github.com/twain47/Nominatim.git - +sudo apt-get install -y libgeos-c1 libgeos++-dev libxml2-dev # now ideally login as $USERNAME and continue su $USERNAME -l -cd /home/vagrant/Nominatim +cd /home/vagrant + +if [ ! -d "Nominatim" ]; then + sudo apt-get install -y git + git clone --recursive https://github.com/twain47/Nominatim.git +fi + +cd Nominatim -# cd ~/Nominatim ./autogen.sh ./configure make -- 2.39.5