From: Sarah Hoffmann Date: Sat, 6 Feb 2016 17:49:12 +0000 (+0100) Subject: update dependencies in vagrant provision file X-Git-Tag: v.2.5.0~5 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/f9ee4e3bd3d88bfc7317fe8b96c32cd12aaa34b1 update dependencies in vagrant provision file also automatically checkout if Nominatim directory does not exist --- 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